code: def test_recoder_4():
      # with explicit column names
      codes = ((1, "one"), (2, "two"))
      rc = Recoder(codes, ["code1", "label"])
      with pytest.raises(AttributeError):
          rc.code
      assert rc.code1[1] == 1
      assert rc.code1["one"] == 1
      assert rc.label[1] == "one"
      assert rc.label["one"] == "one"
  
file_path: nibabel/nibabel/tests/test_recoder.py
imports: import numpy
  import pytest
  from ..volumeutils import DtypeMapper, Recoder, native_code, swapped_code
label_desc: Use image node_id 4 for calling a global function with example usage: test_recoder_4() without return types