code: def _get_temporary_package_filename(
      pipeline_name: str, directory: str
  ) -> str:
      # mkstemp will create and open a file named 'temp_xxxxx.tar.gz'.
      fd, path = tempfile.mkstemp(
          ".tar.gz", f"temp_{pipeline_name}", directory
      )
      os.close(fd)
      return os.path.basename(path)
  
file_path: tfx/tfx/tools/cli/handler/kubeflow_dag_runner_patcher.py
imports: import os
  import tempfile
  import typing
  from typing import Any, Callable, MutableMapping, Optional, Type
  from tfx.orchestration import pipeline
  from tfx.orchestration import tfx_runner
  from tfx.orchestration.kubeflow import kubeflow_dag_runner
  from tfx.tools.cli.handler import dag_runner_patcher
label_desc: Use image node_id 1 for calling a global function with example usage: _get_temporary_package_filename(pipeline_name, directory) and returns: os