code: def _tracker_info() -> Union[str, int]:
      env_tracker_host = os.getenv(TVM_TRACKER_HOST, default="")
      env_tracker_port = os.getenv(TVM_TRACKER_PORT, default="")
  
      if env_tracker_host or env_tracker_port:
          # A tracker is already running, and we should connect to it
          # when running tests.
          assert (
              env_tracker_host
          ), "TVM_TRACKER_PORT is defined, but TVM_TRACKER_HOST is not"
          assert (
              env_tracker_port
          ), "TVM_TRACKER_HOST is defined, but TVM_TRACKER_PORT is not"
          env_tracker_port = int(env_tracker_port)
  
          try:
              tvm.rpc.connect_tracker(
                  env_tracker_host, env_tracker_port
              )
          except RuntimeError as exc:
              message = (
                  "Could not connect to external tracker "
                  "specified by $TVM_TRACKER_HOST and $TVM_TRACKER_PORT "
                  f"({env_tracker_host}:{env_tracker_port})"
              )
              raise RuntimeError(message) from exc
  
          yield (env_tracker_host, env_tracker_port)
  
      else:
          # No tracker is provided to the tests, so we should start one
          # for the tests to use.
          tracker = tvm.rpc.tracker.Tracker(
              "127.0.0.1", get_free_port()
          )
          try:
              yield (tracker.host, tracker.port)
          finally:
              tracker.terminate()
  
imports: import os
  import random
  from typing import Optional, Union
  import pytest
  import tvm
  import tvm.rpc.tracker
  from tvm.contrib.hexagon.build import HexagonLauncher, HexagonLauncherRPC
  from tvm.contrib.hexagon.session import Session
  from tvm.contrib.hexagon.tools import HEXAGON_SIMULATOR_NAME
label_desc: Use image node_id 5 for calling a global function with example usage: _tracker_info() without return types