code: def get_spark_schema(header=DEFAULT_HEADER):
      """Get Spark schema from header.
  
      Args:
          header (list): Dataset header names.
  
      Returns:
          pyspark.sql.types.StructType: Spark schema.
      """
      # create schema
      schema = StructType()
      # do label + ints
      n_ints = 14
      for i in range(n_ints):
          schema.add(StructField(header[i], IntegerType()))
      # do categoricals
      for i in range(26):
          schema.add(StructField(header[i + n_ints], StringType()))
      return schema
  
file_path: recommenders/recommenders/datasets/criteo.py
imports: import pandas
  import os
  import tarfile
  from recommenders.datasets.download_utils import maybe_download, download_path
  from recommenders.utils.notebook_utils import is_databricks
label_desc: Use image node_id 5 for calling a global function with example usage: get_spark_schema(header) and returns: schema