code: def _is_builtin(obj):
      
      module_ = inspect.getmodule(obj)
      if module_ in (None, builtins):
          return True
  
      return module_.__name__ in ("", "__main__")
docs: Checks if the type of the given object is a built-in one or not
  
      :param obj: An object
      :return: True if the object is of a built-in type