code: def check_col_exists(df, columns):
      df_cols = df.columns
      col_not_exist = list(filter(lambda x: x not in df_cols, columns))
      if len(col_not_exist) > 0:
          invalidInputError(
              False, str(col_not_exist) + " do not exist in this Table"
          )
  
imports: from bigdl.dllib.utils.file_utils import get_file_list, callZooFunc
  from bigdl.dllib.utils.utils import convert_row_to_numpy
  from bigdl.dllib.utils.common import *
  from bigdl.dllib.utils.log4Error import *
  import pyspark.sql.functions
  from typing import TYPE_CHECKING, Dict, List, Optional, Type, Union
  from numpy import float32, int32
label_desc: Use image node_id 27 for calling a global function with example usage: check_col_exists(df, columns) without return types