def __init__(self, path=None, string=None):
        if path:
            data = open(path)
            self.network = data.read()
        elif string:
            self.network = string
        else:
            raise ValueError("Must specify either path or string.")
        self.grammar = self.get_grammar()
        self.network_type = self.get_network_type()
        self.variables = self.get_variables()
        self.domain = self.get_domain()
        self.edges = self.get_edges()
        self.tables = self.get_tables()
additionally, tests that the module does not raise at import
dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/readwrite/UAI.py/UAIReader.__init__--crossover with--dataset/ETHPy150Open pantsbuild/pex/tests/test_interpreter.py/TestPythonInterpreter.test_all_does_not_raise_with_empty_path_envvar