code: def get_policy(self, name):
          
  
          address = _create_policy_address(name)
          policy_list_bytes = None
  
          try:
              policy_list_bytes = self._state_view.get(address=address)
          except KeyError:
              return None
  
          if policy_list_bytes is not None:
              policy_list = _create_from_bytes(policy_list_bytes,
                                               identity_pb2.PolicyList)
              for policy in policy_list.policies:
                  if policy.name == name:
                      return policy
          return None
docs: Get a single Policy by name.
  
          Args:
              name (str): The name of the Policy.
  
          Returns:
              (:obj:`Policy`) The Policy that matches the name.