code: def _port_to_int(port):
      try:
          return int(port)
      except ValueError:
          default_logger.warning(
              f"port {port} is not an integer and cannot be cast to one"
          )
          return port
  
imports: import argparse
  import os
  from typing import Tuple
  from jina.enums import ProtocolType
  from jina.logging.predefined import default_logger
label_desc: Use image node_id 5 for calling a global function with example usage: _port_to_int(port) and returns: int, port