code: def filter_cols(df, cols):
      cols = {c.lower() for c in cols}
      retain_cols = [c for c in df.columns if c.lower() in cols]
      return df[retain_cols]
  
file_path: ludwig/ludwig/explain/util.py
imports: from copy import deepcopy
  import pandas
  import torch
  from ludwig.api import LudwigModel
  from ludwig.constants import COLUMN, INPUT_FEATURES, PREPROCESSING, SPLIT
  from ludwig.data.split import get_splitter
  from ludwig.features.base_feature import BaseFeature
label_desc: Use image node_id 1 for calling a global function with example usage: filter_cols(df, cols) and returns: df