code: def isscalar(cls, dataset, dim):
      return (
          dataset.data[dataset.get_dimension(dim, strict=True).name]
          .distinct()
          .count()
          .compute()
          == 1
      )
  
imports: import sys
  from collections.abc import Iterable
  from functools import lru_cache
  import numpy
  from packaging.version import Version
  from ..None import util
  from ..element import Element
  from ..ndmapping import NdMapping, item_check, sorted_context
  from .None import pandas
  from .interface import Interface
  from .util import cached
label_desc: Use image node_id 23 for calling the IbisInterface obj's underlying member method code with example usage: obj.isscalar(cls, dataset, dim) and returns: unknown