code: def abstract_class(cls_):  # numpydoc ignore=RT01
      """Decorate a class, overriding __new__.
  
      Preventing a class from being instantiated similar to abc.ABCMeta
      but does not require an abstract method.
  
      Parameters
      ----------
      cls_ : type
          The class to be decorated as abstract.
  
      """
  
      def __new__(cls, *args, **kwargs):
          if cls is cls_:
              raise TypeError(
                  f"{cls.__name__} is an abstract class and may not be instantiated."
              )
          return object.__new__(cls)
  
      cls_.__new__ = __new__
      return cls_
  
imports: from collections.abc import Sequence
  import enum
  from functools import lru_cache
  import importlib
  import sys
  import threading
  import traceback
  from typing import Type, TypeVar, Union
  import warnings
  import numpy
  from .._typing_core import Vector
label_desc: Use image node_id 3 for calling a global function with example usage: abstract_class(cls_) and returns: cls_, object