code: def filter_data(
      clean_data, month_filter=None, categorical_filter=None
  ):
      if month_filter is not None:
          tmp = pd.to_datetime(
              clean_data["scheduled_dep_time"]
          ).dt.month.isin(
              month_filter,
          )
          clean_data = clean_data[tmp]
  
      if categorical_filter is not None:
          tmp = False
          for key, values in categorical_filter.items():
              tmp = tmp | clean_data[key].isin(values)
          clean_data = clean_data[tmp]
  
      return clean_data
  
file_path: featuretools/featuretools/demo/flight.py
imports: import math
  import re
  import pandas
  from tqdm import tqdm
  from woodwork.logical_types import Boolean, Categorical, Ordinal
  import featuretools
label_desc: Use image node_id 6 for calling a global function with example usage: filter_data(clean_data, month_filter, categorical_filter) and returns: clean_data