code: def temp_file_name(full_path: str, gzip: bool = True) -> str:
      base, file_name = list(os.path.split(full_path))
      extension = ".pkl" if not gzip else ".pkl.gz"
      temp_file = "partial-" + file_name.replace(".hdf", extension)
      return os.path.join(base, temp_file)
  
imports: import argparse
  import datetime
  import gzip
  import os
  import pickle
  from random import shuffle
  import sys
  from typing import IO, Optional, cast
  import colorama
  from joblib import Parallel, delayed
  import numpy
  from numpy.linalg import inv, lstsq, solve
  import pandas
  from phillips_ouliaris import QUANTILES, ROOT, SAMPLE_SIZES, TRENDS
  import psutil
  from arch.typing import Float64Array, Literal, UnitRootTrend
  from arch.utility.timeseries import add_trend
label_desc: Use image node_id 8 for calling a global function with example usage: temp_file_name(full_path, gzip) and returns: os