code: def test_decode_sequence():
      mapping = "abcdef"
      with pytest.raises(TypeError):
          utils.decode_sequence(123, mapping)
      with pytest.raises(AssertionError):
          utils.decode_sequence(np.array([2, 10]), mapping)
      with pytest.raises(AssertionError):
          utils.decode_sequence(np.array([2, 4.5]), mapping)
  
      assert utils.decode_sequence([3, 4, 3, 4], mapping) == "dede"
  
file_path: doctr/tests/common/test_datasets_utils.py
imports: import numpy
  import pytest
  from doctr.datasets import utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_decode_sequence() without return types