code: def version(flag):
      """Get the major, minor or micro version number of the libvips library.
  
      Args:
          flag (int): Pass flag 0 to get the major version number, flag 1 to
              get minor, flag 2 to get micro.
  
      Returns:
          The version number,
  
      Raises:
          :class:`.Error`
      """
  
      value = vips_lib.vips_version(flag)
      if value < 0:
          raise Error("unable to get library version")
  
      return value
  
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 2 for calling a global function with example usage: version(flag) and returns: value