code: def test__encode_classes():
      clf._encode_classes()
      assert clf.class_to_idx == {"a": 0, "b": 1}
  
imports: import numpy
  import tensorflow
  from chitra.dataloader import Clf
label_desc: Use image node_id 1 for calling a global function with example usage: test__encode_classes() without return types