code: def get_template(template_file='', **kwargs):
      
      template = get_template_object(template_file)
  
      LOG.info('Rendering template %s', template.filename)
      for key, value in kwargs.items():
          LOG.debug('%s => %s', key, value)
  
      rendered_json = template.render(**kwargs)
      LOG.debug('Rendered JSON:\n%s', rendered_json)
  
      return rendered_json
docs: Get the Jinja2 template and renders with dict _kwargs_.
  
      Args:
          template_file (str): name of the template file
          kwargs: Keywords to use for rendering the Jinja2 template.
  
      Returns:
          String of rendered JSON template.