code: def test_batch_feature(self):
      md = FeatureModality(
          features=np.asarray(list(self.id_feature.values())),
          ids=list(self.id_feature.keys()),
          normalized=True,
      )
  
      global_iid_map = OrderedDict({"a": 0, "b": 1})
      md.build(id_map=global_iid_map)
  
      b = md.batch_feature(batch_ids=[0])
      self.assertEqual(b.shape[0], 1)
      self.assertEqual(b.shape[1], 10)
  
file_path: cornac/tests/cornac/data/test_modality.py
imports: import unittest
  import numpy
  from collections import OrderedDict
  from cornac.data import FeatureModality
label_desc: Use image node_id 3 for calling the TestFeatureModality obj's underlying member method code with example usage: obj.test_batch_feature() without return types