docs: def get_template_as_json(template_id, **kwargs):
      """
          Get a template (including attribute and dataset definitions) as a JSON
          string. This is just a wrapper around the get_template_as_dict function.
      """
      user_id = kwargs['user_id']
      return json.dumps(get_template_as_dict(template_id, user_id=user_id))