code: def check_method_loss_function(explainer, loss_function):
      if (
          loss_function is not None or explainer.model_type is None
      ):  # user passed a function or type is not known
          return loss_function
      elif explainer.model_type == "regression":
          return "rmse"
      elif explainer.model_type == "classification":
          return "1-auc"
  
imports: import numpy
  import pandas
  from copy import deepcopy
  from warnings import warn
  from .helper import verbose_cat, is_y_in_data, get_model_info
  from .yhat import get_predict_function_and_model_type
label_desc: Use image node_id 15 for calling a global function with example usage: check_method_loss_function(explainer, loss_function) and returns: loss_function, str, str