def load(self):
        """Load the entry point from its definition. If only a module
        is indicated by the value, return that module. Otherwise,
        return the named object.
        """
        match = self.pattern.match(self.value)
        module = import_module(match.group('module'))
        attrs = filter(None, (match.group('attr') or '').split('.'))
        return functools.reduce(getattr, attrs, module)
Load the entry point from its definition. If only a module
        is indicated by the value, return that module. Otherwise,
        return the named object.
        
product/gradle-plugin/src/main/python/setuptools/_vendor/importlib_metadata/__init__.py