code: def values_for_enum(gtype):
      """Get all values for a enum (gtype)."""
  
      g_type_class = gobject_lib.g_type_class_ref(gtype)
      g_enum_class = ffi.cast("GEnumClass *", g_type_class)
  
      # -1 since we always have a "last" member.
      return [
          _to_string(g_enum_class.values[i].value_nick)
          for i in range(g_enum_class.n_values - 1)
      ]
  
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 10 for calling a global function with example usage: values_for_enum(gtype) and returns: unknown