code: def _nonempty_info_to_type_str(nonempty, success, parents):
      assert (
          len(parents) <= 4
      ), "Expected 'parents' to be <=4, got %d." % (len(parents),)
      parent_iters = ""
      if len(parents) > 0:
          parent_iters = "%s-" % (
              "-".join(["iterable"] * len(parents)),
          )
  
      if not success:
          return "%siterable[empty]" % (parent_iters,)
  
      is_parent_tuple = len(parents) >= 1 and isinstance(
          parents[-1], tuple
      )
  
      if is_parent_tuple:
          is_only_numbers_in_tuple = len(parents[-1]) > 0 and all(
              [ia.is_single_number(val) for val in parents[-1]]
          )
  
          if is_only_numbers_in_tuple:
              parent_iters = "-".join(["iterable"] * (len(parents) - 1))
              tpl_name = "tuple[number,size=%d]" % (len(parents[-1]),)
              return "-".join([parent_iters, tpl_name]).lstrip("-")
  
      if nonempty is None:
          return "None"
      if ia.is_np_array(nonempty):
          kind = nonempty.dtype.kind
          kind_map = {
              "f": "float",
              "u": "uint",
              "i": "int",
              "b": "bool",
          }
          return "%sarray[%s]" % (
              parent_iters,
              kind_map[kind] if kind in kind_map else kind,
          )
  
      # even int, str etc. are objects in python, so anything left should
      # offer a __class__ attribute
      assert isinstance(
          nonempty, object
      ), "Expected 'nonempty' to be an object, got type %s." % (
          type(nonempty),
      )
      return "%s%s" % (parent_iters, nonempty.__class__.__name__)
  
imports: from __future__ import print_function, division, absolute_import
  import functools
  import numpy
  from ..None import imgaug
  from ..None import dtypes
  from .base import IAugmentable
label_desc: Use image node_id 35 for calling a global function with example usage: _nonempty_info_to_type_str(nonempty, success, parents) and returns: unknown, unknown, str, unknown, str