def METHOD_NAME(self, cfn, properties, value_specs, path):
    """Check itself"""
    matches = []
    for p_value, p_path in properties.items_safe(path[:]):
        for prop in p_value:
            if prop in value_specs:
                property_type = value_specs.get(prop).get("Type")
                primitive_type = value_specs.get(prop).get("PrimitiveItemType")
                duplicates_allowed = value_specs.get(prop).get(
                    "DuplicatesAllowed", False
                )
                if (
                    property_type == "List"
                    and duplicates_allowed
                    and primitive_type in ["String", "Integer"]
                ):
                    matches.extend(
                        self.check_duplicates(p_value[prop], p_path + [prop], cfn)
                    )
    return matches