code: def create_nested_input(draw, dimensions, leaf_values):
      if len(dimensions) != 1:
          return [
              draw(create_nested_input(dimensions[1:], leaf_values))
              for _ in range(dimensions[0])
          ]
      value = draw(st.sampled_from(leaf_values))
      return [value for _ in range(dimensions[0])]
  
imports: import numpy
  import hypothesis.extra.numpy
  from hypothesis import strategies
  from hypothesis.internal.floats import float_of
  from functools import reduce
  from operator import mul
  import sys
  import string
  import ml_dtypes
  import ivy_tests.test_ivy.helpers.globals
  from ..pipeline_helper import WithBackendContext
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers.hypothesis_helpers.dtype_helpers import get_dtypes
  from .None import general_helpers
  from .None import dtype_helpers, number_helpers
  from ..globals import mod_backend
label_desc: Use image node_id 20 for calling a global function with example usage: create_nested_input(draw, dimensions, leaf_values) and returns: unknown, unknown