@staticmethod
    def _get_plugin(plugin_path):
        """Given a qualified class name (eg. foo.bar.Foo), return the class

        :rtype: object

        """
        try:
            package, class_name = plugin_path.rsplit('.', 1)
        except ValueError:
            return None

        try:
            module_handle = importlib.import_module(package)
            class_handle = getattr(module_handle, class_name)
            return class_handle
        except __HOLE__:
            LOGGER.exception('Attempting to import %s', plugin_path)
            return None
dataset/ETHPy150Open MeetMe/newrelic-plugin-agent/newrelic_plugin_agent/agent.py/NewRelicPluginAgent._get_plugin