code: def read_calendar_from_qlib(qlib_dir: Path) -> pd.DataFrame:
      calendar_path = qlib_dir.joinpath("calendars").joinpath("day.txt")
      if not calendar_path.exists():
          return pd.DataFrame()
      return pd.read_csv(calendar_path, header=None)
  
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 1 for calling a global function with example usage: read_calendar_from_qlib(qlib_dir) and returns: pd, pd