code: def from_arrow_schema(arrow_schema):
      
      return StructType(
          [StructField(field.name, from_arrow_type(field.type), nullable=field.nullable)
           for field in arrow_schema])
docs: Convert schema from Arrow to Spark.