code: def array(cls, dataset, dimensions):
      if dimensions:
          indices = [dataset.get_dimension_index(d) for d in dimensions]
          return dataset.data[:, indices]
      else:
          return dataset.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 5 for calling the ArrayInterface obj's underlying member method code with example usage: obj.array(cls, dataset, dimensions) and returns: dataset, dataset