code: def create_scalar_map(applies_to_matrix_dimension):
      maps = [
          ci.Cifti2NamedMap(name, ci.Cifti2MetaData(meta))
          for name, meta in scalars
      ]
      return ci.Cifti2MatrixIndicesMap(
          applies_to_matrix_dimension,
          "CIFTI_INDEX_TYPE_SCALARS",
          maps=maps,
      )
  
imports: import numpy
  import pytest
  import nibabel
  from nibabel import cifti2
  from nibabel.tmpdirs import InTemporaryDirectory
  from ...testing import assert_array_equal, clear_and_catch_warnings, error_warnings, suppress_warnings
label_desc: Use image node_id 5 for calling a global function with example usage: create_scalar_map(applies_to_matrix_dimension) and returns: ci