original_docstring:  Validate user's run from existing model
  
      :param mlflow_client: MlflowClient instance
      :param run_id: run id of logged mlflow model
  
      :return: True if run id is valid, False otherwise
      
docstring: Validate user's run from existing model
docstring_tokens: Validate user ' s run from existing model
code: def _validate_run_id(mlflow_client: mlflow.tracking.MlflowClient,
                       run_id: str) -> bool:
      """ Validate user's run from existing model
  
      :param mlflow_client: MlflowClient instance
      :param run_id: run id of logged mlflow model
  
      :return: True if run id is valid, False otherwise
      """
      try:
          run_info = mlflow_client.get_run(run_id)
  
          if RunStatus.from_string(run_info.info.status) == mlflow.entities.run_status.RunStatus.FINISHED:
              return True
  
          return False
      except:
          raise Exception(f"Failed to get run with id {run_id}")
code_tokens: def _validate_run_id ( mlflow_client : mlflow . tracking . MlflowClient , run_id : str ) -> bool : try : run_info = mlflow_client . get_run ( run_id ) if RunStatus . from_string ( run_info . info . status ) == mlflow . entities . run_status . RunStatus . FINISHED : return True return False except : raise Exception ( f"Failed to get run with id {run_id}" )
short_docstring: Validate user's run from existing model
short_docstring_tokens: Validate user ' s run from existing model
comment: """ Validate user's run from existing model
  
      :param mlflow_client: MlflowClient instance
      :param run_id: run id of logged mlflow model
  
      :return: True if run id is valid, False otherwise
      """