code: def isscalar(cls, dataset, dim):
      idx = dataset.get_dimension_index(dim)
      return len(np.unique(dataset.data[:, idx])) == 1
  
imports: import numpy
  from ..None import util
  from ..dimension import dimension_name
  from ..element import Element
  from ..ndmapping import NdMapping, item_check, sorted_context
  from .interface import DataError, Interface
label_desc: Use image node_id 4 for calling the ArrayInterface obj's underlying member method code with example usage: obj.isscalar(cls, dataset, dim) and returns: unknown