code: def from_json(
      cls,
      json_dict: Dict[str, Any],
      artifact: Optional["Artifact"] = None,
  ) -> "_dtypes.Type":
      classes_obj = None
      if (
          json_dict.get("params", {}).get("classes_obj", {}).get("type")
          == "classes-file"
      ):
          if artifact is not None:
              classes_obj = artifact.get(
                  json_dict.get("params", {})
                  .get("classes_obj", {})
                  .get("path")
              )
              assert classes_obj is None or isinstance(
                  classes_obj, Classes
              )
          else:
              raise RuntimeError("Expected artifact to be non-null.")
      else:
          classes_obj = Classes.from_json(
              json_dict["params"]["classes_obj"], artifact
          )
  
      return cls(classes_obj)
  
file_path: wandb/wandb/sdk/data_types/helper_types/classes.py
imports: import os
  from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, Type, Union
  from ..None import _dtypes
  from ..base_types.media import Media
label_desc: Use image node_id 6 for calling the _ClassesIdType obj's underlying member method code with example usage: obj.from_json(cls, json_dict, artifact) and returns: cls