Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@classmethod
def _find_class_for_collection(cls, collection_name):
"""Look in the parent modules for classes matching the element name.
One or both of element/class name must be specified.
Args:
collection_name: The name of the collection type.
Returns:
A Resource class.
"""
return cls._find_class_for(util.singularize(collection_name))