code: def get_buffer(obj):
      buf = Py_buffer()
      pythonapi.PyObject_GetBuffer(py_object(obj), byref(buf), 0)
      try:
          buffer_type = c_char * buf.len
          return buffer_type.from_address(buf.buf)
      finally:
          pythonapi.PyBuffer_Release(byref(buf))
  
imports: from ctypes import byref, POINTER, c_int, c_char, c_char_p, c_void_p, py_object, c_ssize_t, pythonapi, Structure
label_desc: Use image node_id 1 for calling a global function with example usage: get_buffer(obj) and returns: buffer_type