def dependency_module(self, yangfile):
        module = os.path.basename(yangfile)
        modulename = module.split('.yang')[0]

        if '@' in modulename:
            modulename = modulename.split('@')[0]

        module = self.modules.get(modulename, None)
        return module
Get dependency module object for given yang
dataset/ETHPy150Open CiscoDevNet/yang-explorer/server/explorer/utils/dygraph.py/DYGraph.dependency_module