def METHOD_NAME(self, cmd):
    """Private function that handles the ssh client invocation."""
    # TODO: If a microvm runs in a particular network namespace, we have to
    # temporarily switch to that namespace when doing something that routes
    # packets over the network, otherwise the destination will not be
    # reachable. Use a better setup/solution at some point!
    ctx = contextlib.nullcontext()
    if self.netns_file_path is not None:
        ctx = Namespace(self.netns_file_path, "net")
    with ctx:
        return utils.run_cmd(cmd, ignore_return_code=True)