def import_attribute(self, path):
        module = '.'.join(path.split('.')[:-1])
        function = path.split('.')[-1]

        module = importlib.import_module(module)
        return getattr(module, function)
Should filter nodes belonging to a given environment
dataset/ETHPy150Open flashingpumpkin/django-socialregistration/socialregistration/mixins.py/CommonMixin.import_attribute--crossover with--dataset/ETHPy150Open edelight/kitchen/kitchen/backends/tests.py/TestData.test_filter_nodes_env