def find_dependency(self, dependency: str):

    def check_list(name: str):
        for i in self.interpreter.dependencies:
            if (name == i['name']):
                return i
        return None
    dep = check_list(dependency)
    if (dep is not None):
        return dep
    if (dependency in self.interpreter.assignments):
        node = self.interpreter.assignments[dependency]
        if isinstance(node, FunctionNode):
            if (node.func_name in ['dependency']):
                name = self.interpreter.flatten_args(node.args)[0]
                dep = check_list(name)
    return dep
def find_dependency(self, dependency: str):

    def check_list(name: str):
        for i in self.interpreter.dependencies:
            if (name == i['name']):
                return i
        return None
    dep = check_list(dependency)
    if (dep is not None):
        return dep
    if (dependency in self.interpreter.assignments):
        node = self.interpreter.assignments[dependency]
        if isinstance(node, FunctionNode):
            if (node.func_name in ['dependency']):
                name = self.interpreter.flatten_args(node.args)[0]
                dep = check_list(name)
    return dep