code: def availability(self):
          
          if not hasattr(self, '_availability'):
              self._availability = conf.lib.clang_getCursorAvailability(self)
  
          return AvailabilityKind.from_id(self._availability)
docs: Retrieves the availability of the entity pointed at by the cursor.