code: def values_for_flag(gtype):
      """Get all values for a flag (gtype)."""
  
      g_type_class = gobject_lib.g_type_class_ref(gtype)
      g_flags_class = ffi.cast("GFlagsClass *", g_type_class)
  
      return [
          _to_string(g_flags_class.values[i].value_nick)
          for i in range(g_flags_class.n_values)
      ]
  
file_path: pyvips/pyvips/base.py
imports: from pyvips import ffi, glib_lib, vips_lib, gobject_lib, _to_string, _to_bytes, Error
label_desc: Use image node_id 11 for calling a global function with example usage: values_for_flag(gtype) and returns: unknown