code: def set_spark(cls, master=None, appName=None, conf=None, hive_support=False):
          
          sess = SparkSession.builder
          if master:
              sess.master(master)
          if appName:
              sess.appName(appName)
          if conf:
              sess.config(conf=conf)
          if hive_support:
              sess.enableHiveSupport()
  
          cls.spark = sess.getOrCreate()
docs: Creates and initializes a new `SparkSession`. Argument signature is copied from
          `pyspark.sql.SparkSession
          <https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.SparkSession>`_.