class_docstr: Don't 'inherit' certain attributes from a base class
  
  >>> from sympy.utilities.decorator import no_attrs_in_subclass
  
  >>> class A(object):
  ...     x = 'test'
  
  >>> A.x = no_attrs_in_subclass(A, A.x)
  
  >>> class B(A):
  ...     pass
  
  >>> hasattr(A, 'x')
  True
  >>> hasattr(B, 'x')
  False
code: def __init__(self, cls, f):
      self.cls = cls
      self.f = f
  
file_path: sympy/sympy/utilities/decorator.py
imports: import sys
  import types
  import inspect
  from functools import wraps, update_wrapper
  from sympy.utilities.exceptions import sympy_deprecation_warning
label_desc: Use image node_id 1 to create a new no_attrs_in_subclass object  with example: obj = no_attrs_in_subclass(cls, f)