code: def write_calendar_to_qlib(
      qlib_dir: Path, date_list: List[str], freq: str = "day"
  ):
      calendar_path = str(
          qlib_dir.joinpath("calendars").joinpath(f"{freq}_future.txt")
      )
  
      np.savetxt(calendar_path, date_list, fmt="%s", encoding="utf-8")
      logger.info(f"write future calendars success: {calendar_path}")
  
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 2 for calling a global function with example usage: write_calendar_to_qlib(qlib_dir, date_list, freq) without return types