code: def has_column(df, col):
      try:
          df[col]
          return True
      except AnalysisException:
          return False
  
imports: import os
  import unittest
  import tempfile
  import pyspark
  from synapsemltest.spark import *
  from synapse.ml.vw import VowpalWabbitContextualBandit
  from synapse.ml.vw import VowpalWabbitFeaturizer
  from synapse.ml.vw import VectorZipper
  from pyspark.ml.tuning import ParamGridBuilder
  from pyspark.sql.types import *
  from pyspark.ml import Pipeline
  from pyspark.ml.wrapper import *
  from pyspark.ml.common import inherit_doc, _java2py, _py2java
  from pyspark.sql.utils import AnalysisException
label_desc: Use image node_id 1 for calling a global function with example usage: has_column(df, col) and returns: True, False