def METHOD_NAME(cls, api_key: str) -> Node | None:
    """
    Returns Node based on the provided API key.
    Parameters
    ----------
    api_key : str
        The API key of the node to search for
    Returns
    -------
    Node | None
        Returns the node if a node is associated with api_key, None if no
        node is associated with api_key.
    """
    session = DatabaseSessionManager.get_session()
    nodes = session.query(cls).all()
    session.commit()
    for node in nodes:
        is_correct_key = node.check_key(api_key)
        if is_correct_key:
            return node
    # no node found with matching API key
    return None