parameters: (self, categories)
docstring: Generates the ADMX "categories" element and adds it to the categories
      main node. The "categories" element defines the category for the policies
      defined in this ADMX document. Here is an example of an ADMX "categories"
      element:
  
      <categories>
        <category displayName="$(string.google)" name="google"/>
        <category displayName="$(string.googlechrome)" name="googlechrome">
          <parentCategory ref="google"/>
        </category>
      </categories>
  
      Args:
        categories_path: The categories path e.g. ['google', 'googlechrome']. For
          each level in the path a "category" element will be generated. Except
          for the root level, each level refers to its parent. Since the root
          level category has no parent it does not require a parent reference.
docstring_summary: Generates the ADMX "categories" element and adds it to the categories
      main node. The "categories" element defines the category for the policies
      defined in this ADMX document. Here is an example of an ADMX "categories"
      element:
docstring_tokens: Generates the ADMX categories element and adds it to the categories main node . The categories element defines the category for the policies defined in this ADMX document . Here is an example of an ADMX categories element :
function: def _AddCategories(self, categories):
      '''Generates the ADMX "categories" element and adds it to the categories
      main node. The "categories" element defines the category for the policies
      defined in this ADMX document. Here is an example of an ADMX "categories"
      element:
  
      <categories>
        <category displayName="$(string.google)" name="google"/>
        <category displayName="$(string.googlechrome)" name="googlechrome">
          <parentCategory ref="google"/>
        </category>
      </categories>
  
      Args:
        categories_path: The categories path e.g. ['google', 'googlechrome']. For
          each level in the path a "category" element will be generated. Except
          for the root level, each level refers to its parent. Since the root
          level category has no parent it does not require a parent reference.
      '''
      category_name = None
      for category in categories:
        parent_category_name = category_name
        category_name = category
        self._AddCategory(self._categories_elem, category_name,
                          self._AdmlString(category_name), parent_category_name)
function_tokens: def _AddCategories ( self , categories ) : category_name = None for category in categories : parent_category_name = category_name category_name = category self . _AddCategory ( self . _categories_elem , category_name , self . _AdmlString ( category_name ) , parent_category_name )