code: def get_policy(cls, policy_name: str, **kwargs) -> Policy:
      return cls._POLICY_REGISTRY[policy_name](**kwargs)
  
file_path: BigDL/python/llm/src/bigdl/llm/vllm/core/policy.py
imports: from typing import List
  from bigdl.llm.vllm.sequence import SequenceGroup
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling the PolicyFactory obj's underlying member method code with example usage: obj.get_policy(cls, policy_name) and returns: cls