class_docstr: Class for finds automatically appropriate policies for the current model
docstr: Find appropriate policies for the current model
  
  Args:
      model (nn.Module): model to parallelize
  
  Returns:
      Union[List[Policy], None]: appropriate policies or none
docstr_tok: ["Find","appropriate","policies","for","the","current","model","Args",":","model","(","nn.Module",")",":","model","to","parallelize","Returns",":","Union","[","List","[","Policy","]",",","None","]",":","appropriate","policies","or","none"]
code: def get_policy(self, model: nn.Module) -> Union[List[Policy], None]:
      """
      Find appropriate policies for the current model
  
      Args:
          model (nn.Module): model to parallelize
  
      Returns:
          Union[List[Policy], None]: appropriate policies or none
      """
      for k, v in self.available().items():
          if isinstance(model, k):
              return v
  
      return None
  
imports: from contextlib import suppress
  from typing import List, Union
  from torch import nn
  from parallelformers.policies.base import Policy
label_desc: Use image node_id 2 for calling the AutoPolicy obj's underlying member method code with example usage: obj.get_policy(model) and returns: None, v