code: def get_cols_exclude_index(
      inp: BaseDataFrameData, cols: Any
  ) -> Set[Any]:
      ret = set()
      if isinstance(cols, (list, tuple)):
          for col in cols:
              if col in inp.dtypes.index:
                  # exclude index
                  ret.add(col)
      else:
          if cols in inp.dtypes.index:
              # exclude index
              ret.add(cols)
      return ret
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_cols_exclude_index(inp, cols) and returns: ret