code: def to_user_item_feature(row, column_info, model_type="wide_n_deep"):
      """
      convert a row to UserItemFeature given column feature information of a WideAndDeep model
  
      :param row: Row of userId, itemId, features and label
      :param column_info: ColumnFeatureInfo specify information of different features
      :return: UserItemFeature for recommender model
      """
      return UserItemFeature(
          row["userId"],
          row["itemId"],
          row_to_sample(row, column_info, model_type),
      )
  
file_path: analytics-zoo/pyzoo/zoo/models/recommendation/utils.py
imports: import numpy
  from bigdl.util.common import JTensor, Sample
  from zoo.common.utils import callZooFunc
  from zoo.models.recommendation import UserItemFeature
label_desc: Use image node_id 8 for calling a global function with example usage: to_user_item_feature(row, column_info, model_type) and returns: UserItemFeature