code: def test_update_mappings(data_indexer):
      new_data = np.array([["g", "i", "h"], ["g", "i", "a"]])
      data_indexer.update_mappings(new_data)
      assert (
          data_indexer.backend.ents_length == 6
      ), "entities size should be 6, two new added"
      assert (
          data_indexer.backend.rels_length == 3
      ), "relations size should be 3, one new added"
  
file_path: AmpliGraph/tests/ampligraph/datasets/test_data_indexer.py
imports: from ampligraph.datasets.data_indexer import DataIndexer
  import numpy
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_update_mappings(data_indexer) without return types