code: def lookup_by_name(cls, name: str) -> Type["StoragePolicy"]:
      import wandb.sdk.artifacts.storage_policies  # noqa: F401
  
      for sub in cls.__subclasses__():
          if sub.name() == name:
              return sub
      raise NotImplementedError(
          f"Failed to find storage policy '{name}'"
      )
  
file_path: wandb/wandb/sdk/artifacts/storage_policy.py
imports: from typing import TYPE_CHECKING, Dict, Optional, Sequence, Type, Union
  from wandb.sdk.lib.paths import FilePathStr, URIStr
label_desc: Use image node_id 1 for calling the StoragePolicy obj's underlying member method code with example usage: obj.lookup_by_name(cls, name) and returns: sub