code: def test_recoder_6():
      # with explicit column names
      codes = ((1, "one", "1", "first"), (2, "two"))
      rc = Recoder(codes, ["code1", "label"])
      assert rc.code1[1] == 1
      assert rc.code1["first"] == 1
      assert rc.label[1] == "one"
      assert rc.label["first"] == "one"
      # Don't allow funny names
      with pytest.raises(KeyError):
          Recoder(codes, ["field1"])
  
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 6 for calling a global function with example usage: test_recoder_6() without return types