code: def image_to_html(
      media_source: Union[str, bytes], file_type: Optional[str] = None
  ) -> str:
      """
      Convert an image file to an HTML tag with embedded base64 data.
  
      Args:
          media_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.
  
      Returns:
          The HTML tag with embedded base64 data.
  
      Examples:
          >>> from argilla.client.feedback.utils import image_to_html
          >>> html = image_to_html("my_image.png")
      """
      return media_to_html("image", media_source, file_type)
  
file_path: argilla/src/argilla/client/feedback/utils/html_utils.py
imports: import base64
  import warnings
  from pathlib import Path
  from typing import Callable, List, Optional, Union
  from argilla.utils.dependency import require_dependencies
label_desc: Use image node_id 4 for calling a global function with example usage: image_to_html(media_source, file_type) and returns: media_to_html