code: def get_policy(self, name, parse=False):
          
          try:
              policy = self.sys.read_policy(name=name)['data']['rules']
          except exceptions.InvalidPath:
              return None
  
          if parse:
              if not has_hcl_parser:
                  raise ImportError('pyhcl is required for policy parsing')
              policy = hcl.loads(policy)
  
          return policy
docs: Retrieve the policy body for the named policy.
  
          :param name: The name of the policy to retrieve.
          :type name: str | unicode
          :param parse: Specifies whether to parse the policy body using pyhcl or not.
          :type parse: bool
          :return: The (optionally parsed) policy body for the specified policy.
          :rtype: str | dict