code: def make_exception(message: str, error_code: int):
      """Makes an exception with the MLMD error code.
  
      Args:
        message: Error message.
        error_code: MLMD error code.
  
      Returns:
        An exception.
      """
  
      try:
          exc_type = exception_type_from_error_code(error_code)
          # log internal backend engine errors only.
          if error_code == INTERNAL:
              logging.log(
                  logging.WARNING,
                  "mlmd client %s: %s",
                  exc_type.__name__,
                  message,
              )
          return exc_type(message)
      except KeyError:
          return UnknownError(message)
  
imports: from absl import logging
label_desc: Use image node_id 2 for calling a global function with example usage: make_exception(message, error_code) and returns: exc_type, UnknownError