code: def from_manifest_json(
      cls, manifest_json: Dict
  ) -> "ArtifactManifest":
      if "version" not in manifest_json:
          raise ValueError(
              "Invalid manifest format. Must contain version field."
          )
      version = manifest_json["version"]
      for sub in cls.__subclasses__():
          if sub.version() == version:
              return sub.from_manifest_json(manifest_json)
      raise ValueError("Invalid manifest version.")
  
file_path: wandb/wandb/sdk/artifacts/artifact_manifest.py
imports: from typing import TYPE_CHECKING, Dict, List, Mapping, Optional
  from wandb.sdk.lib.hashutil import HexMD5
label_desc: Use image node_id 1 for calling the ArtifactManifest obj's underlying member method code with example usage: obj.from_manifest_json(cls, manifest_json) and returns: sub