code: def POINTER(obj):
      
  
      p = ctypes.POINTER(obj)
      if not isinstance(p.from_param, classmethod):
          def from_param(cls, x):
              if x is None:
                  return cls()
              else:
                  return x
          p.from_param = classmethod(from_param)
  
      return p
docs: Create ctypes pointer to object.
  
      Notes
      -----
      This function converts None to a real NULL pointer because of bug
      in how ctypes handles None on 64-bit platforms.