code: def df_dates(
      df: DataFrame, dates: Tuple[str, list] = None
  ) -> DataFrame:
      """Yields the DataFrame with the given dates"""
      if dates is None:
          return None
      if not isinstance(dates, list):
          dates = [dates]
      return df[df.index.isin(dates)]
  
file_path: pandas-ta/pandas_ta/utils/_time.py
imports: from datetime import datetime
  from time import localtime, perf_counter
  from typing import Tuple
  from pandas import DataFrame, Timestamp
  from pandas_ta import EXCHANGE_TZ, RATE
label_desc: Use image node_id 1 for calling a global function with example usage: df_dates(df, dates) and returns: df, None