class_docstr: Figure object can be used for storing Plotly or Matplotlib figures into Aim repository.
  Core functionality is based on Plotly.
  
  Args:
       obj (:obj:): plotly or matplotlib figure object.
class_docstr_tok: ["Figure","object","can","be","used","for","storing","Plotly","or","Matplotlib","figures","into","Aim","repository",".","Core","functionality","is","based","on","Plotly",".","Args",":","obj","(",":","obj",":",")",":","plotly","or","matplotlib","figure","object","."]
code: def _prepare(self, obj):
      try:
          from plotly.version import __version__ as plotly_version
      except ModuleNotFoundError:
          plotly_version = "unknown"
  
      assert hasattr(obj, "to_json")
  
      self.storage["source"] = "plotly"
      self.storage["version"] = plotly_version
      self.storage["format"] = "raw_json"
      self.storage["data"] = BLOB(data=obj.to_json())
  
file_path: aim/aim/sdk/objects/figure.py
imports: import logging
  from aim.sdk.num_utils import inst_has_typename
  from aim.storage.object import CustomObject
  from aim.storage.types import BLOB
label_desc: Use image node_id 2 for calling the Figure obj's underlying member method code with example usage: obj._prepare(obj) without return types