code: def write_legacy_pickles(output_dir):
      version = pandas.__version__
  
      print(
          "This script generates a storage file for the current arch, system, "
          "and python version"
      )
      print(f"  pandas version: {version}")
      print(f"  output dir    : {output_dir}")
      print("  storage format: pickle")
  
      pth = f"{platform_name()}.pickle"
  
      with open(os.path.join(output_dir, pth), "wb") as fh:
          pickle.dump(create_pickle_data(), fh, pickle.DEFAULT_PROTOCOL)
  
      print(f"created pickle file: {pth}")
  
file_path: pandas/pandas/tests/io/generate_legacy_storage_files.py
imports: from datetime import timedelta
  import os
  import pickle
  import platform
  import sys
  import numpy
  import pandas
  from pandas import Categorical, DataFrame, Index, MultiIndex, NaT, Period, RangeIndex, Series, Timestamp, bdate_range, date_range, interval_range, period_range, timedelta_range
  from pandas.arrays import SparseArray
  from pandas.tseries.offsets import FY5253, BusinessDay, BusinessHour, CustomBusinessDay, DateOffset, Day, Easter, Hour, LastWeekOfMonth, Minute, MonthBegin, MonthEnd, QuarterBegin, QuarterEnd, SemiMonthBegin, SemiMonthEnd, Week, WeekOfMonth, YearBegin, YearEnd
label_desc: Use image node_id 6 for calling a global function with example usage: write_legacy_pickles(output_dir) without return types