code: def get_autopolicy(model: nn.Module) -> Policy:
      r"""
      Return the auto policy for the model
  
      Args:
          model (:class:`nn.Module`): The model to get the auto policy
  
      Return:
          :class:`Policy`: The auto policy for the model
      """
      full_name = _fullname(model)
      policy_location = _POLICY_LIST.get(full_name, None)
  
      if policy_location is None:
          raise NotImplementedError(
              f"Auto policy for {model.__class__.__qualname__} is not implemented\n. Supported models are {list(_POLICY_LIST.keys())}"
          )
      else:
          policy = import_policy(policy_location)
      return policy()
  
file_path: colossalai/colossalai/shardformer/policies/auto_policy.py
imports: import importlib
  from dataclasses import dataclass
  import torch.nn
  from .base_policy import Policy
label_desc: Use image node_id 3 for calling a global function with example usage: get_autopolicy(model) and returns: policy