code: def get_last_ffi_error():
      """Create error object given result of TVMGetLastError.
  
      Returns
      -------
      err : object
          The error object based on the err_msg
      """
      c_err_msg = py_str(_LIB.TVMGetLastError())
      py_err_msg, err_type = c2pyerror(c_err_msg)
      if err_type is not None and err_type.startswith("tvm.error."):
          err_type = err_type[10:]
      return ERROR_TYPE.get(err_type, TVMError)(py_err_msg)
  
imports: import ctypes
  import functools
  import os
  import re
  import sys
  import types
  from typing import Callable, Sequence, Optional
  import numpy
  from .None import libinfo
label_desc: Use image node_id 10 for calling a global function with example usage: get_last_ffi_error() and returns: ERROR_TYPE