

def _parse_and_transform_ast(self, path):
    with open(path) as f:
        tree = ast.parse(f.read(), filename=path)
        tree = self._node_transformer.visit(tree)
        ast.fix_missing_locations(tree)
        return tree

dataset/ETHPy150Open nestorsalceda/mamba/mamba/example_collector.py ExampleCollector._parse_and_transform_ast/original