code: def generate_qlib_calendar(
      date_list: List[str], freq: str
  ) -> List[str]:
      print(freq)
      if freq == "day":
          return date_list
      elif freq == "1min":
          date_list = generate_minutes_calendar_from_daily(
              date_list, freq=freq
          ).tolist()
          return list(
              map(
                  lambda x: pd.Timestamp(x).strftime(
                      "%Y-%m-%d %H:%M:%S"
                  ),
                  date_list,
              )
          )
      else:
          raise ValueError(f"Unsupported freq: {freq}")
  
file_path: qlib/scripts/data_collector/contrib/future_trading_date_collector/future_trading_date_collector.py
imports: import sys
  from typing import List
  from pathlib import Path
  import fire
  import numpy
  import pandas
  from loguru import logger
  import baostock
  from data_collector.utils import generate_minutes_calendar_from_daily
label_desc: Use image node_id 3 for calling a global function with example usage: generate_qlib_calendar(date_list, freq) and returns: date_list, list