code: def declare_in_type(self, self_type):
      if self.field_type_name is not None:
          # lazy type lookup
          field_type = builtin_scope.lookup(self.field_type_name).type
      else:
          field_type = self.field_type or PyrexTypes.py_object_type
      entry = self_type.scope.declare(
          self.py_name, self.cname, field_type, None, "private"
      )
      entry.is_variable = True
  
imports: from __future__ import absolute_import
  from .Symtab import BuiltinScope, StructOrUnionScope
  from .Code import UtilityCode
  from .TypeSlots import Signature
  from .None import PyrexTypes
  from .None import Options
label_desc: Use image node_id 2 for calling the BuiltinAttribute obj's underlying member method code with example usage: obj.declare_in_type(_type) without return types