code: def matching_cols(cols1, cols2):
      """returns True if cols1 and cols2 match."""
      if isinstance(cols1, pd.DataFrame):
          cols1 = cols1.columns
      if isinstance(cols2, pd.DataFrame):
          cols2 = cols2.columns
      if len(cols1) != len(cols2):
          return False
      if (pd.Index(cols1) == pd.Index(cols2)).all():
          return True
      return False
  
imports: from functools import partial
  import re
  from collections import Counter
  from typing import List, Union
  import warnings
  import numpy
  import pandas
  from pandas.api.types import is_numeric_dtype, is_categorical_dtype
  from dtreeviz.trees import ShadowDecTree
  from sklearn.metrics import make_scorer
  from sklearn.base import clone
  from sklearn.pipeline import Pipeline
  from sklearn.model_selection import KFold, StratifiedKFold
  from joblib import Parallel, delayed
label_desc: Use image node_id 11 for calling a global function with example usage: matching_cols(cols1, cols2) and returns: False, False, True