code: def _build_stroke_data():
      """
      Build an SFrame by generating 10 random stroke-based drawings.
      Each stroke is generated by doing a random walk on a canvas.
      """
      num_rows_in_sframe = 10
      drawings, labels = [], []
      random = _np.random.RandomState(100)
  
      def _generate_random_point(point=None):
          if point is not None:
              dx = random.choice([-1, 0, 1])
              dy = random.choice([-1, 0, 1])
              next_x, next_y = point["x"] + dx, point["y"] + dy
          else:
              next_x, next_y = random.randint(1000), random.randint(
                  1000
              )
          return {"x": next_x, "y": next_y}
  
      for label in range(num_rows_in_sframe):
          num_strokes = random.randint(10)
          drawing = []
          for stroke_id in range(num_strokes):
              drawing.append([])
              num_points = random.randint(500)
              last_point = None
              for point_id in range(num_points):
                  last_point = _generate_random_point(last_point)
                  drawing[-1].append(last_point)
          drawings.append(drawing)
          labels.append(label)
  
      return _tc.SFrame({"drawing": drawings, "label": labels})
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import os
  import turicreate
  from turicreate.toolkits._main import ToolkitError
  import numpy
  import tempfile
  from array import array
  import sys
  from .None import util
  import unittest
label_desc: Use image node_id 2 for calling a global function with example usage: _build_stroke_data() and returns: _tc, dict