def image_to_html(
    file_source: Union[str, bytes],
    file_type: Optional[str] = None,
    width: Optional[str] = None,
    height: Optional[str] = None,
) -> str:
    """
    Convert an image file to an HTML tag with embedded base64 data.

    Args:
        file_source: The path to the media file or a non-b64 encoded byte string.
        file_type: The type of the image file. If not provided, it will be inferred from the file extension.
        width: Display width in HTML. Defaults to None.
        height: Display height in HTML. Defaults to None.

    Returns:
        The HTML tag with embedded base64 data.

    Examples:
        >>> from argilla_v1.client.feedback.utils import image_to_html
        >>> html = image_to_html("my_image.png", width="300px", height="300px")
    """
    return media_to_html("image", file_source, file_type, width, height)

    Convert an image file to an HTML tag with embedded base64 data.

    Args:
        file_source: The path to the media file or a non-b64 encoded byte string.
        file_type: The type of the image file. If not provided, it will be inferred from the file extension.
        width: Display width in HTML. Defaults to None.
        height: Display height in HTML. Defaults to None.

    Returns:
        The HTML tag with embedded base64 data.

    Examples:
        >>> from argilla_v1.client.feedback.utils import image_to_html
        >>> html = image_to_html("my_image.png", width="300px", height="300px")
    
argilla-v1/src/argilla_v1/client/feedback/utils/html_utils.py