async def METHOD_NAME(
    node_type: str,
    rpc_port: Optional[int],
    root_path: Path,
    show_connections: bool,
    add_connection: str,
    remove_connection: str,
) -> None:
    client_type = NODE_TYPES[node_type]
    async with get_any_service_client(client_type, rpc_port, root_path) as (rpc_client, config):
        # Check or edit node connections
        if show_connections:
            trusted_peers: Dict[str, Any] = config["full_node"].get("trusted_peers", {})
            await print_connections(rpc_client, trusted_peers)
            # if called together with state, leave a blank line
        if add_connection:
            await add_node_connection(rpc_client, add_connection)
        if remove_connection:
            await remove_node_connection(rpc_client, remove_connection)