code: def _is_array(val):
      """Check if val is an array."""
      return hasattr(val, "__array__") and not np.isscalar(val)
  
imports: from collections.abc import Collection
  from datetime import datetime
  from functools import partial, reduce
  from operator import eq, is_
  import numpy
  from satpy.writers.utils import flatten_dict
label_desc: Use image node_id 9 for calling a global function with example usage: _is_array(val) and returns: unknown