code: def _from_pointer(pointer, incref):
          
          if pointer == ffi.NULL:
              raise ValueError('Null pointer')
          if incref:
              cairo.cairo_surface_reference(pointer)
          self = object.__new__(SURFACE_TYPE_TO_CLASS.get(
              cairo.cairo_surface_get_type(pointer), Surface))
          Surface.__init__(self, pointer)  # Skip the subclass’s __init__
          return self
docs: Wrap an existing :c:type:`cairo_surface_t *` cdata pointer.
  
          :type incref: bool
          :param incref:
              Whether increase the :ref:`reference count <refcounting>` now.
          :return:
              A new instance of :class:`Surface` or one of its sub-classes,
              depending on the surface’s type.