code: def __init__(
      self,
      name: str,
      greater_is_better: bool,
      custom_function: Optional[str] = None,
  ):
      self.name = name
      self.greater_is_better = greater_is_better
      self.custom_function = custom_function
  
file_path: mlflow/mlflow/recipes/utils/metrics.py
imports: import importlib
  import logging
  import sys
  from typing import Any, Dict, List, Optional
  from mlflow.exceptions import BAD_REQUEST, MlflowException
  from mlflow.models import EvaluationMetric, make_metric
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
label_desc: Use image node_id 1 to create a new RecipeMetric object  with example: obj = RecipeMetric(name, greater_is_better, custom_function)