docs: def get_template(template_path, **parameters):
      """Use jinja2 to fill in template with given parameters.
      
      Parameters
      ----------
      template_path : str
          Name of template.
  
      Keyword Arguments
      -----------------
      Parameters passed into the jinja2 template
  
      Returns
      -------
      output_text : str
          Template as a string filled in with parameters.
      """
      path = sanitize_path(template_path)
      template_file = path.name
      template_dir = str(path.parent)
  
      ## Apply ARN of instance role of worker nodes and apply to cluster
      template_loader = jinja2.FileSystemLoader(searchpath=template_dir)
      template_env = jinja2.Environment(loader=template_loader)
  
      template = template_env.get_template(template_file)
      output_text = template.render(**parameters)
  
      return output_text