async def METHOD_NAME(node_id: NodeID) -> dict[str, Any]:
    ports = (
        nodeports
        if f"{node_id}" == nodeports.node_uuid
        else await load(
            db_manager=nodeports.db_manager,
            user_id=nodeports.user_id,
            project_id=nodeports.project_id,
            node_uuid=f"{node_id}",
            io_log_redirect_cb=nodeports.io_log_redirect_cb,
        )
    )
    return {
        "inputs": {
            port_key: port.value for port_key, port in ports.internal_inputs.items()
        },
        "outputs": {
            port_key: port.value
            for port_key, port in ports.internal_outputs.items()
        },
    }