code: def _contains_policies(self, resource_properties):
          
          return resource_properties is not None \
              and isinstance(resource_properties, dict) \
              and self.POLICIES_PROPERTY_NAME in resource_properties
docs: Is there policies data in this resource?
  
          :param dict resource_properties: Properties of the resource
          :return: True if we can process this resource. False, otherwise