code: def add_hist_seq(
      df: "SparkDataFrame",
      cols: List[str],
      user_col: str,
      sort_col: str,
      min_len: int,
      max_len: int,
      num_seqs: int,
  ) -> "SparkDataFrame":
      return callZooFunc(
          "float",
          "addHistSeq",
          df,
          cols,
          user_col,
          sort_col,
          min_len,
          max_len,
          num_seqs,
      )
  
imports: from bigdl.dllib.utils.file_utils import callZooFunc
  from pyspark.sql.types import IntegerType, ShortType, LongType, FloatType, DecimalType, DoubleType, BooleanType
  from pyspark.sql.functions import broadcast, udf
  from bigdl.dllib.utils.log4Error import *
  import warnings
  from bigdl.dllib.utils.log4Error import *
  from typing import TYPE_CHECKING, Any, List, Optional, Tuple, Union
label_desc: Use image node_id 12 for calling a global function with example usage: add_hist_seq(df, cols, user_col, sort_col, min_len, max_len, num_seqs) and returns: callZooFunc