code: def update_runtime_cls(args) -> "Namespace":
      """Get runtime_cls as a string from args
  
      :param args: pod/deployment namespace args
      :return: runtime class as a string
      """
      _args = args
  
      if _args.runtime_cls == "WorkerRuntime" and is_valid_huburi(
          _args.uses
      ):
          _hub_args = deepcopy(_args)
          _hub_args.uri = _args.uses
          _hub_args.no_usage = True
          _args.uses = HubIO(_hub_args).pull()
  
      if (
          hasattr(_args, "protocol")
          and _args.pod_role == PodRoleType.GATEWAY
      ):
          _update_gateway_args(_args)
      if _args.pod_role == PodRoleType.HEAD:
          _args.runtime_cls = "HeadRuntime"
  
      return _args
  
file_path: jina/jina/orchestrate/pods/helper.py
imports: import multiprocessing
  from copy import deepcopy
  from functools import partial
  from typing import TYPE_CHECKING
  from hubble.executor.helper import is_valid_huburi
  from hubble.executor.hubio import HubIO
  from jina.enums import PodRoleType
  from jina.parsers.helper import _update_gateway_args
label_desc: Use image node_id 2 for calling a global function with example usage: update_runtime_cls(args) and returns: _args