import ast


def _to_ast_call(module_name, func_name, args=[], kwds=[]):
    """Creates an AST equivalent sympy call."""
    # if module_name not in globals():
    #     globals()[module_name] = importlib.import_module(module_name)
    return ast.Call(
        func=ast.Attribute(
            value=ast.Name(id=module_name, ctx=ast.Load()),
            attr=func_name,
            ctx=ast.Load(),
        ),
        args=args,
        keywords=kwds,
    )