code: def generate_data(nb_arrays, common_shape, rng):
      data = [
          rng.rand(*(rng.randint(3, 20),) + common_shape) * 100
          for _ in range(nb_arrays)
      ]
      return data
  
imports: import itertools
  import os
  import sys
  import tempfile
  import unittest
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ...testing import assert_arrays_equal
  from ..array_sequence import ArraySequence, concatenate, is_array_sequence
label_desc: Use image node_id 2 for calling a global function with example usage: generate_data(nb_arrays, common_shape, rng) and returns: data