code: def rnd_len_arrays(dtype, min_len=0, max_len=3, elements=None):
      """Generate numpy arrays of random length"""
      lengths = integers(min_value=min_len, max_value=max_len)
      return lengths.flatmap(
          lambda n: arrays(dtype, n, elements=elements)
      )
  
file_path: eli5/tests/utils.py
imports: from __future__ import print_function
  import os
  import inspect
  import json
  from pprint import pprint
  from hypothesis.strategies import integers
  from hypothesis.extra.numpy import arrays
  import numpy
  from eli5.base import Explanation
  from eli5.formatters import format_as_text, format_as_html, format_as_dict
  from eli5.formatters.html import html_escape
  from eli5.formatters.text import format_signed
  from eli5.sklearn.utils import sklearn_version
label_desc: Use image node_id 1 for calling a global function with example usage: rnd_len_arrays(dtype, min_len, max_len, elements) and returns: lengths