class_docstr: Util class for setting up and logging to MLflow.
  
  Use this util for any library that needs MLflow logging/tracking logic
  such as Ray Tune or Ray Train.
class_docstr_tok: ["Util","class","for","setting","up","and","logging","to","MLflow",".","Use","this","util","for","any","library","that","needs","MLflow","logging\/tracking","logic","such","as","Ray","Tune","or","Ray","Train","."]
docstr: Terminates the run specified by run_id.
  
  If no ``run_id`` is passed in, then terminates the
  active run if one exists.
  
  Args:
      status (Optional[str]): The status to set when terminating the run.
      run_id (Optional[str]): The ID of the run to terminate.
docstr_tok: ["Terminates","the","run","specified","by","run_id",".","If","no","``","run_id","``","is","passed","in",",","then","terminates","the","active","run","if","one","exists",".","Args",":","status","(","Optional","[","str","]",")",":","The","status","to","set","when","terminating","the","run",".","run_id","(","Optional","[","str","]",")",":","The","ID","of","the","run","to","terminate","."]
code: def end_run(self, status: Optional[str] = None, run_id=None):
      """Terminates the run specified by run_id.
  
      If no ``run_id`` is passed in, then terminates the
      active run if one exists.
  
      Args:
          status (Optional[str]): The status to set when terminating the run.
          run_id (Optional[str]): The ID of the run to terminate.
  
      """
      if (
          run_id
          and self._run_exists(run_id)
          and not (
              self._mlflow.active_run()
              and self._mlflow.active_run().info.run_id == run_id
          )
      ):
          client = self._get_client()
          client.set_terminated(run_id=run_id, status=status)
      else:
          self._mlflow.end_run(status=status)
  
file_path: ray/python/ray/air/_internal/mlflow.py
imports: import logging
  import os
  from packaging import version
  from copy import deepcopy
  from typing import TYPE_CHECKING, Dict, Optional
  from ray._private.dict import flatten_dict
label_desc: Use image node_id 12 for calling the _MLflowLoggerUtil obj's underlying member method code with example usage: obj.end_run(status, run_id) without return types