code: def to_json(self):
      data_json = {}
      for i, cl in enumerate(self.lbl.classes_):
          data_json[str(cl)] = i
      return data_json
  
file_path: mljar-supervised/supervised/preprocessing/label_encoder.py
imports: import copy
  import logging
  from decimal import Decimal
  import numpy
  from sklearn import preprocessing
  from supervised.utils.config import LOG_LEVEL
label_desc: Use image node_id 5 for calling the LabelEncoder obj's underlying member method code with example usage: obj.to_json() and returns: data_json