code: def setUp(self):
      data = tc.SFrame()
      data["user_id"] = ["a", "b", "b", "c", "c", "c"]
      data["item_id"] = ["x", "x", "y", "v", "w", "z"]
      data["rating"] = [0, 1, 2, 3, 4, 5]
  
      # Make internal indices so that we can check predictions/ranking.
      # IDs are in the order they are seen in the above data SFrame.
      user_index = {"a": 0, "b": 1, "c": 2}
      item_index = {"x": 0, "y": 1, "v": 2, "w": 3, "z": 4}
      user_data = tc.SFrame()
      user_data["user_id"] = ["a", "b"]
      user_data["user_feature_value"] = [0.5, 0.9]
      user_data["user_dict_value"] = [{1: 0.5}, {4: 0.9}]
      user_data["user_vect_value"] = [[0, 1, 2], [2, 3, 4]]
      user_data["user_str_dict_value"] = [{"tt": 0.5}, {"ttt": 0.9}]
      item_data = tc.SFrame()
      item_data["item_id"] = ["x", "v", "w", "y"]
      item_data["item_feature_value"] = [-0.3, 0.7, 0.3, 0.05]
      item_data["item_dict_value"] = [
          {1: 0.5},
          {4: 0.9},
          {4: 0.9},
          {5: 1, 6: 2},
      ]
      item_data["item_vect_value"] = [
          [0, 1, 2],
          [2, 3, 4],
          [2, 3, 4],
          [2, 3, 5],
      ]
      item_data["item_str_dict_value"] = [
          {"tt": 0.5},
          {"tt": 0.9},
          {"t": 0.9},
          {"ttt": 0.9},
      ]
      new_data = tc.SFrame()
      new_data["user_id"] = ["a", "b"]
      new_data["item_id"] = ["v", "z"]
      new_data["rating"] = [7, 8]
      new_user_data = tc.SFrame()
      new_user_data["user_id"] = ["a", "c"]
      new_user_data["user_feature_value"] = [0.0, 2.9]
      new_user_data["user_dict_value"] = [{1: 0.5}, {4: 0.9}]
      new_user_data["user_vect_value"] = [[0, 1, 2], [2, 3, 4]]
      new_user_data["user_str_dict_value"] = [{"tt": 0.5}, {"ttt": 0.9}]
  
      new_item_data = tc.SFrame()
      new_item_data["item_id"] = ["y", "z"]
      new_item_data["item_feature_value"] = [0.5, 0.6]
      new_item_data["item_dict_value"] = [{1: 0.5}, {4: 0.9}]
      new_item_data["item_vect_value"] = [[0, 1, 2], [2, 3, 4]]
      new_item_data["item_str_dict_value"] = [{"tt": 0.5}, {"ttt": 0.9}]
  
      exclude = tc.SFrame()
      exclude["user_id"] = ["a"]
      exclude["item_id"] = ["x"]
  
      users_all = tc.SArray(["a", "b", "c"])
      items_all = tc.SArray(["v", "w", "x", "y", "z"])
      items_some = tc.SArray(["v", "w"])
  
      self.data = data
      self.user_data = user_data
      self.item_data = item_data
      self.new_data = new_data
      self.new_user_data = new_user_data
      self.new_item_data = new_item_data
      self.exclude = exclude
      self.users_all = users_all
      self.items_all = items_all
      self.items_some = items_some
      self.user_index = user_index
      self.item_index = item_index
  
file_path: turicreate/src/python/turicreate/test/test_recsys_api.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import sys
  import turicreate
label_desc: Use image node_id 1 for calling the AdditionalDataTest obj's underlying member method code with example usage: obj.setUp() without return types