code: def chunk_columns(df, chunk_size):
      for start in range(0, df.shape[1], chunk_size):
          chunk = df.iloc[
              :, range(start, min(start + chunk_size, df.shape[1]))
          ]
          yield chunk
  
imports: import glow
  import json
  import numpy
  import pandas
  import pyspark.sql.functions
label_desc: Use image node_id 1 for calling a global function with example usage: chunk_columns(df, chunk_size) without return types