code: def generate_features(tbl, bins, cross_sizes):
      tbl = tbl.cut_bins(
          columns=count_cols, bins=bins, out_cols=count_cols
      )
  
      tbl = tbl.cross_columns(cross_cols, cross_sizes)
      return tbl
  
file_path: BigDL/python/friesian/example/wnd/recsys2021/wnd_preprocess_recsys.py
imports: import os
  from argparse import ArgumentParser
  import tempfile
  import pickle
  from time import time
  from bigdl.orca import init_orca_context, stop_orca_context
  from bigdl.orca.data.file import makedirs, exists
  from bigdl.dllib.utils.file_utils import put_local_file_to_remote
  from bigdl.friesian.feature import FeatureTable
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 4 for calling a global function with example usage: generate_features(tbl, bins, cross_sizes) and returns: tbl