code: def isSequence(obj):
      return (
          hasattr(obj, "__iter__")
          or isinstance(obj, np.ndarray)
          or (
              hasattr(obj, "implements") and obj.implements("MetaArray")
          )
      )
  
imports: import math
  import warnings
  import bisect
  import numpy
  from ..None import debug
  from ..None import functions
  from ..None import getConfigOption
  from ..Qt import QtCore
  from .GraphicsObject import GraphicsObject
  from .PlotCurveItem import PlotCurveItem
  from .ScatterPlotItem import ScatterPlotItem
label_desc: Use image node_id 2 for calling a global function with example usage: isSequence(obj) and returns: unknown