docstr: Given a dataset object and data in the appropriate format for
  the interface, return a simple scalar.
docstr_tok: ["Given","a","dataset","object","and","data","in","the","appropriate","format","for","the","interface",",","return","a","simple","scalar","."]
code: def unpack_scalar(cls, dataset, data):
      """
      Given a dataset object and data in the appropriate format for
      the interface, return a simple scalar.
      """
      if data.shape == (1, 1):
          return data[0, 0]
      return data
  
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 15 for calling the ArrayInterface obj's underlying member method code with example usage: obj.unpack_scalar(cls, dataset, data) and returns: data, data