code: def _load_data(
      self,
      num_examples=1000,
      num_features=3,
      max_num_sessions=4,
      randomize_num_sessions=True,
      num_labels=9,
      prediction_window=5,
      enforce_all_sessions=False,
  ):
      random.seed(42)
  
      self.num_examples = num_examples
      self.num_features = num_features
      self.num_sessions = (
          random.randint(1, max_num_sessions)
          if randomize_num_sessions
          else max_num_sessions
      )
      self.num_labels = num_labels
      self.prediction_window = prediction_window
  
      self.features = ["X1-r", "X2-r", "X3-r"]
      self.target = "activity_label"
      self.session_id = "session_id"
  
      if enforce_all_sessions:
          random_session_ids = _random_session_ids(
              self.num_examples, self.num_sessions
          )
      else:
          random_session_ids = sorted(
              [
                  random.randint(0, self.num_sessions - 1)
                  for i in range(self.num_examples)
              ]
          )
  
      random_labels = [
          random.randint(0, self.num_labels - 1)
          for i in range(self.num_examples)
      ]
  
      self.data = tc.util.generate_random_sframe(
          column_codes="r" * self.num_features,
          num_rows=self.num_examples,
          random_seed=42,
      )
      self.data[self.session_id] = random_session_ids
      self.data[self.target] = random_labels
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import turicreate
  import random
  import tempfile
  import math
  import numpy
  from numbers import Number
  from .None import util
  import pytest
  from turicreate.toolkits._internal_utils import _mac_ver
  from turicreate.toolkits._main import ToolkitError
  import uuid
label_desc: Use image node_id 1 for calling a global function with example usage: _load_data(num_examples, num_features, max_num_sessions, randomize_num_sessions, num_labels, prediction_window, enforce_all_sessions) without return types