docs: def create_meta_main(create_path, config, role, categories):
      """
      Create a meta template.
      """
      meta_file = c.DEFAULT_META_FILE.replace(
          "%author_name", config["author_name"])
      meta_file = meta_file.replace(
          "%author_company", config["author_company"])
      meta_file = meta_file.replace("%license_type", config["license_type"])
      meta_file = meta_file.replace("%role_name", role)
  
      # Normalize the category so %categories always gets replaced.
      if not categories:
          categories = ""
  
      meta_file = meta_file.replace("%categories", categories)
  
      string_to_file(create_path, meta_file)