code: def test_get_indexer_method(self):
      idx1 = CategoricalIndex(list("aabcde"), categories=list("edabc"))
      idx2 = CategoricalIndex(list("abf"))
  
      msg = "method pad not yet implemented for CategoricalIndex"
      with pytest.raises(NotImplementedError, match=msg):
          idx2.get_indexer(idx1, method="pad")
      msg = "method backfill not yet implemented for CategoricalIndex"
      with pytest.raises(NotImplementedError, match=msg):
          idx2.get_indexer(idx1, method="backfill")
  
      msg = "method nearest not yet implemented for CategoricalIndex"
      with pytest.raises(NotImplementedError, match=msg):
          idx2.get_indexer(idx1, method="nearest")
  
imports: import numpy
  import pytest
  from pandas.errors import InvalidIndexError
  import pandas
  from pandas import CategoricalIndex, Index, IntervalIndex, Timestamp
  import pandas._testing
label_desc: Use image node_id 4 for calling the TestGetIndexer obj's underlying member method code with example usage: obj.test_get_indexer_method() without return types