code: def _to_string_copy(x):
      """Convert to a unicode string, and auto-free.
  
      As _to_string(), but also tag x as a pointer to a memory area that must
      be freed with g_free().
  
      """
      return _to_string(ffi.gc(x, glib_lib.g_free))
  
file_path: pyvips/pyvips/error.py
imports: import sys
  import logging
  from pyvips import ffi, vips_lib, glib_lib
label_desc: Use image node_id 3 for calling a global function with example usage: _to_string_copy(x) and returns: _to_string