code: def _flatten(inputs, result):
      for x in inputs:
          if isinstance(x, np.ndarray) or np.isscalar(x):
              result.append(x)
          else:
              _flatten(x, result)
  
label_desc: Use image node_id 1 for calling a global function with example usage: _flatten(inputs, result) without return types