code: def get_image(vm_):
      r'''
      Return the image object to use.
  
      vm\_
          The VM dictionary for which to obtain an image.
      '''
      images = avail_images()
      vm_image = six.text_type(config.get_cloud_config_value(
          'image', vm_, __opts__, search_global=False
      ))
      for image in images:
          if vm_image in (images[image]['name'], images[image]['id']):
              return images[image]['id']
      raise SaltCloudNotFound(
          'The specified image, \'{0}\', could not be found.'.format(vm_image)
      f get_image(vm_):
      r'''
      Return the image object to use.
  
      vm\_
          The VM dictionary for which to obtain an image.
      '''
      images = avail_images()
      vm_image = six.text_type(config.get_cloud_config_value(
          'image', vm_, __opts__, search_global=False
      ))
      for image in images:
          if vm_image in (images[image]['name'], images[image]['id']):
              return images[image]['id']
      raise SaltCloudNotFound(
          'The specified image, \'{0}\', could not be found.'.format(vm_image)
      )
docs: r'''
      Return the image object to use.
  
      vm\_
          The VM dictionary for which to obtain an image.