code: def get_template_image(kwargs=None, call=None):
      '''
      Returns a template's image from the given template name.
  
      .. versionadded:: 2018.3.0
  
      .. code-block:: bash
  
          salt-cloud -f get_template_image opennebula name=my-template-name
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The get_template_image function must be called with -f or --function.'
          )
  
      if kwargs is None:
          kwargs = {}
  
      name = kwargs.get('name', None)
      if name is None:
          raise SaltCloudSystemExit(
              'The get_template_image function requires a \'name\'.'
          )
  
      try:
          ret = list_templates()[name]['template']['disk']['image']
      except KeyError:
          raise SaltCloudSystemExit(
              'The image for template \'{0}\' could not be found.'.format(name)
          )
  
      return ref get_template_image(kwargs=None, call=None):
      '''
      Returns a template's image from the given template name.
  
      .. versionadded:: 2018.3.0
  
      .. code-block:: bash
  
          salt-cloud -f get_template_image opennebula name=my-template-name
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The get_template_image function must be called with -f or --function.'
          )
  
      if kwargs is None:
          kwargs = {}
  
      name = kwargs.get('name', None)
      if name is None:
          raise SaltCloudSystemExit(
              'The get_template_image function requires a \'name\'.'
          )
  
      try:
          ret = list_templates()[name]['template']['disk']['image']
      except KeyError:
          raise SaltCloudSystemExit(
              'The image for template \'{0}\' could not be found.'.format(name)
          )
  
      return ret
docs: Returns a template's image from the given template name.
  
      .. versionadded:: 2018.3.0
  
      .. code-block:: bash
  
          salt-cloud -f get_template_image opennebula name=my-template-name