docstr: Given a Dataset object and selection to be applied returns
  boolean to indicate whether a scalar value has been indexed.
docstr_tok: ["Given","a","Dataset","object","and","selection","to","be","applied","returns","boolean","to","indicate","whether","a","scalar","value","has","been","indexed","."]
code: def indexed(cls, dataset, selection):
      """
      Given a Dataset object and selection to be applied returns
      boolean to indicate whether a scalar value has been indexed.
      """
      selected = list(selection.keys())
      all_scalar = all(
          (
              not isinstance(sel, (tuple, slice, set, list))
              and not callable(sel)
          )
          for sel in selection.values()
      )
      all_kdims = all(d in selected for d in dataset.kdims)
      return all_scalar and all_kdims
  
imports: import sys
  import warnings
  import numpy
  import param
  from ..None import util
  from ..element import Element
  from ..ndmapping import NdMapping
  from .util import finite_range
label_desc: Use image node_id 16 for calling the Interface obj's underlying member method code with example usage: obj.indexed(cls, dataset, selection) and returns: unknown