code: def _set_spawn_exe_path():
      """Set the path to the executable for spawned processes.
  
      This utility searches for the binary the parent process is using, and sets
      the executable of multiprocessing's context accordingly.
  
      Raises:
        RuntimeError: If the binary path cannot be determined.
      """
      # TODO(b/150264776): This does not work with Windows. Find a solution.
      if sys.argv[0].endswith(".py"):
  
          def guess_path(package_root):
              # If all we have is a python module path, we'll need to make a guess for
              # the actual executable path.
              if (
                  "bazel-out" in sys.argv[0]
                  and package_root in sys.argv[0]
              ):
                  # Guess the binary path under bazel. For target
                  # //tensorflow/python/distribute:input_lib_test_multiworker_gpu, the
                  # argv[0] is in the form of
                  # /.../tensorflow/python/distribute/input_lib_test.py
                  # and the binary is
                  # /.../tensorflow/python/distribute/input_lib_test_multiworker_gpu
                  package_root_base = sys.argv[0][
                      : sys.argv[0].rfind(package_root)
                  ]
                  binary = os.environ["TEST_TARGET"][2:].replace(
                      ":", "/", 1
                  )
                  possible_path = os.path.join(
                      package_root_base, package_root, binary
                  )
                  logging.info(
                      "Guessed test binary path: %s", possible_path
                  )
                  if os.access(possible_path, os.X_OK):
                      return possible_path
                  return None
  
          path = guess_path("org_tensorflow")
          if not path:
              path = guess_path("org_keras")
          if path is None:
              logging.error(
                  "Cannot determine binary path. sys.argv[0]=%s os.environ=%s",
                  sys.argv[0],
                  os.environ,
              )
              raise RuntimeError("Cannot determine binary path")
          sys.argv[0] = path
      # Note that this sets the executable for *all* contexts.
      multiprocessing.get_context().set_executable(sys.argv[0])
  
file_path: tensorflow/tensorflow/python/distribute/multi_process_lib.py
imports: import multiprocessing
  import os
  import platform
  import sys
  import unittest
  from absl import app
  from absl import logging
  from tensorflow.python.eager import test
label_desc: Use image node_id 3 for calling a global function with example usage: _set_spawn_exe_path() and returns: None, possible_path