def get_import_target(node: ast.AST) -> Optional[Tuple[str, str]]:
    """Return the module and name referred to by the given ast node."""

    if isinstance(node, ast.Import):
        return (node.names[0].asname or node.names[0].name, node.names[0].name)
    elif isinstance(node, ast.ImportFrom):
        return (node.module, node.names[0].name)

    return None
Return the module and name referred to by the given ast node.
.grit/dealias_trulens_eval.py