code: def from_json(self, data_json):
      self.enc.cols = data_json.get("cols")
      self.enc._dim = data_json.get("dim")
      self.enc._mean = data_json.get("mean")
      self.enc.feature_names = data_json.get("feature_names")
      self.enc.mapping = {}
      for k, v in data_json.get("mapping", {}).items():
          self.enc.mapping[k] = pd.DataFrame(json.loads(v))
  
file_path: mljar-supervised/supervised/preprocessing/loo_encoder.py
imports: import copy
  import json
  import logging
  import warnings
  from decimal import Decimal
  import numpy
  import pandas
  from category_encoders.leave_one_out import LeaveOneOutEncoder
  from supervised.utils.config import LOG_LEVEL
label_desc: Use image node_id 5 for calling the LooEncoder obj's underlying member method code with example usage: obj.from_json(data_json) without return types