def METHOD_NAME(
    self,
    via_client: Optional[SyftClient] = None,
    url: Optional[str] = None,
    port: Optional[int] = None,
    handle: Optional[NodeHandle] = None,  # noqa: F821
    **kwargs,
) -> None:
    if via_client is not None:
        client = via_client
    elif handle is not None:
        client = handle.client
    else:
        client = login(url=url, port=port, **kwargs)
        if isinstance(client, SyftError):
            return client
    res = self.exchange_route(client)
    if isinstance(res, SyftSuccess):
        return SyftSuccess(
            message=f"Connected {self.metadata.node_type} to {client.name} gateway"
        )
    return res