code: def fit(self, X, y):
      with warnings.catch_warnings():
          warnings.simplefilter("ignore")
          self.enc.fit(X, y)
  
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 2 for calling the LooEncoder obj's underlying member method code with example usage: obj.fit(X, y) without return types