class_docstr: Wandb class for 3D Molecular data.
  
  Arguments:
      data_or_path: (string, io)
          Molecule can be initialized from a file name or an io object.
      caption: (string)
          Caption associated with the molecule for display.
class_docstr_tok: ["Wandb","class","for","3D","Molecular","data",".","Arguments",":","data_or_path",":","(","string",",","io",")","Molecule","can","be","initialized","from","a","file","name","or","an","io","object",".","caption",":","(","string",")","Caption","associated","with","the","molecule","for","display","."]
code: def to_json(
      self, run_or_artifact: Union["LocalRun", "Artifact"]
  ) -> dict:
      json_dict = super().to_json(run_or_artifact)
      json_dict["_type"] = self._log_type
      if self._caption:
          json_dict["caption"] = self._caption
      return json_dict
  
file_path: wandb/wandb/sdk/data_types/molecule.py
imports: import io
  import os
  import pathlib
  from typing import TYPE_CHECKING, Optional, Sequence, Type, Union
  from wandb import util
  from wandb.sdk.lib import runid
  from wandb.sdk.lib.paths import LogicalPath
  from ._private import MEDIA_TMP
  from .base_types.media import BatchableMedia, Media
label_desc: Use image node_id 5 for calling the Molecule obj's underlying member method code with example usage: obj.to_json(run_or_artifact) and returns: json_dict