def METHOD_NAME(self, node):
    is_valid = False
    # If instance of function call, check if it is a call to the OrderedDict constructor
    if isinstance(node, ast.Call):
        is_valid = self.METHOD_NAME(node.func)
    # If instance of variable access, check if it is
    elif isinstance(node, ast.Name) and node.id == OrderedDict.__name__:
        is_valid = True
    return is_valid