code: def _flatten(x):
      result = []
      for el in x:
          if _is_array_like(el):
              result.extend(_flatten(el))
          else:
              result.append(el)
      return result
  
imports: from collections.abc import Iterable
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _flatten(x) and returns: result