docs: def get_spark_session(enable_hive=False, app_name='marvin-engine', configs=[]):
      """Return a Spark Session object"""
  
      # Prepare spark context to be used
      import findspark
      findspark.init()
      from pyspark.sql import SparkSession
  
      # prepare spark sesseion to be returned
      spark = SparkSession.builder
  
      spark = spark.appName(app_name)
      spark = spark.enableHiveSupport() if enable_hive else spark
  
      # if has configs
      for config in configs:
          spark = spark.config(config)
  
      return spark.getOrCreate()