class_docstr: An image.
  
  `Images can be created directly from PNG/JPG/GIF `bytes`, `PIL.Image`s,
  or Matplotlib figures. Note that the image data is embedded in the card,
  so no external files are required to show the image.
  
  Example: Create an `Image` from bytes:
  ```
  current.card.append(
      Image(
          requests.get("https://www.gif-vif.com/hacker-cat.gif").content,
          "Image From Bytes"
      )
  )
  ```
  
  Example: Create an `Image` from a Matplotlib figure
  ```
  import pandas as pd
  import numpy as np
  current.card.append(
      Image.from_matplotlib(
          pandas.DataFrame(
              np.random.randint(0, 100, size=(15, 4)),
              columns=list("ABCD"),
          ).plot()
      )
  )
  ```
  
  Example: Create an `Image` from a [PIL](https://pillow.readthedocs.io/) Image
  ```
  from PIL import Image as PILImage
  current.card.append(
      Image.from_pil_image(
          PILImage.fromarray(np.random.randn(1024, 768), "RGB"),
          "From PIL Image"
      )
  )
  ```
  
  Parameters
  ----------
  src : bytes
      The image data in `bytes`.
  label : str
      Optional label for the image.
class_docstr_tok: ["An","image",".","`","Images","can","be","created","directly","from","PNG\/JPG\/GIF","`","bytes","`",",","`","PIL.Image","`","s",",","or","Matplotlib","figures",".","Note","that","the","image","data","is","embedded","in","the","card",",","so","no","external","files","are","required","to","show","the","image",".","Example",":","Create","an","`","Image","`","from","bytes",":","``","`","current.card.append","(","Image","(","requests.get","(","``","https",":","\/\/www.gif-vif.com\/hacker-cat.gif","''",")",".content",",","``","Image","From","Bytes","''",")",")","``","`","Example",":","Create","an","`","Image","`","from","a","Matplotlib","figure","``","`","import","pandas","as","pd","import","numpy","as","np","current.card.append","(","Image.from_matplotlib","(","pandas.DataFrame","(","np.random.randint","(","0",",","100",",","size=","(","15",",","4",")",")",",","columns=list","(","``","ABCD","''",")",",",")",".plot","(",")",")",")","``","`","Example",":","Create","an","`","Image","`","from","a","[","PIL","]","(","https",":","\/\/pillow.readthedocs.io\/",")","Image","``","`","from","PIL","import","Image","as","PILImage","current.card.append","(","Image.from_pil_image","(","PILImage.fromarray","(","np.random.randn","(","1024",",","768",")",",","``","RGB","''",")",",","``","From","PIL","Image","''",")",")","``","`","Parameters","--","--","--","--","--","src",":","bytes","The","image","data","in","`","bytes","`",".","label",":","str","Optional","label","for","the","image","."]
code: def _get_pil_module(cls):
      if cls._PIL_MODULE == "NOT_PRESENT":
          return None
      if cls._PIL_MODULE is None:
          try:
              import PIL
          except ImportError:
              cls._PIL_MODULE = "NOT_PRESENT"
              return None
          cls._PIL_MODULE = PIL
      return cls._PIL_MODULE
  
imports: from typing import Any, List, Optional, Union
  from .basic import LogComponent, ErrorComponent, ArtifactsComponent, TableComponent, ImageComponent, SectionComponent, MarkdownComponent
  from .card import MetaflowCardComponent
  from .convert_to_native_type import TaskToDict, _full_classname
  from .renderer_tools import render_safely
  import uuid
label_desc: Use image node_id 1 for calling the Image obj's underlying member method code with example usage: obj._get_pil_module(cls) and returns: cls, None, None