original_docstring:  Validate logged mlflow model - look for input_example and signature
  
      :param run_id: the model's run id
  
      :return: True if model is valid, False otherwise
      
docstring: Validate logged mlflow model - look for input_example and signature
docstring_tokens: Validate logged mlflow model - look for input_example and signature
code: def _validate_model(run_id: str) -> bool:
      """ Validate logged mlflow model - look for input_example and signature
  
      :param run_id: the model's run id
  
      :return: True if model is valid, False otherwise
      """
      logged_model = _get_logged_model(run_id)
      # signature can be inferred from input_example
      try:
          _ = logged_model['signature']
      except Exception as e:
          raise Exception(
              f"Could not fetch signature for model with run id '{run_id}'. Please log a model with a valid "
              f"signature.\nLogged model {logged_model}. Error: {e}"
          )
      try:
          _ = logged_model['saved_input_example_info']
      except Exception as e:
          raise Exception(
              f"Could not fetch input example for model with run id '{run_id}'. Please log a model with a valid input "
              f"example.\nLogged model {logged_model}")
  
      return True
code_tokens: def _validate_model ( run_id : str ) -> bool : logged_model = _get_logged_model ( run_id ) try : _ = logged_model [ 'signature' ] except Exception as e : raise Exception ( f"Could not fetch signature for model with run id '{run_id}'. Please log a model with a valid " f"signature.\nLogged model {logged_model}. Error: {e}" ) try : _ = logged_model [ 'saved_input_example_info' ] except Exception as e : raise Exception ( f"Could not fetch input example for model with run id '{run_id}'. Please log a model with a valid input " f"example.\nLogged model {logged_model}" ) return True
short_docstring: Validate logged mlflow model - look for input_example and signature
short_docstring_tokens: Validate logged mlflow model - look for input_example and signature
comment: """ Validate logged mlflow model - look for input_example and signature
  
      :param run_id: the model's run id
  
      :return: True if model is valid, False otherwise
      """$SEP$# signature can be inferred from input_example