docs: def _checkValueItemParent(policy_element, policy_name, policy_key,
                            policy_valueName, xpath_object, policy_file_data,
                            check_deleted=False, test_item=True):
      '''
      helper function to process the parent of a value item object
      if test_item is True, it will determine if the policy is enabled/disabled
      returns True if the value is configured in the registry.pol file, otherwise returns False
  
      if test_item is False, the expected search string will be returned
  
      value type parents:
          boolean: https://msdn.microsoft.com/en-us/library/dn606009(v=vs.85).aspx
          enabledValue: https://msdn.microsoft.com/en-us/library/dn606006(v=vs.85).aspx
          disabledValue: https://msdn.microsoft.com/en-us/library/dn606001(v=vs.85).aspx
  
      '''
      for element in xpath_object(policy_element):
          for value_item in element.getchildren():
              search_string = _processValueItem(value_item,
                                                policy_key,
                                                policy_valueName,
                                                policy_element,
                                                element,
                                                check_deleted=check_deleted)
              if not test_item:
                  return search_string
              if _regexSearchRegPolData(re.escape(search_string), policy_file_data):
                  log.debug('found the search string in the pol file, '
                            '%s is configured', policy_name)
                  return True
      return False