code: def _transform_value(value, policy, transform_type):
      '''
      helper function to transform the policy value into something that more
      closely matches how the policy is displayed in the gpedit GUI
      '''
      t_kwargs = {}
      if 'Transform' in policy:
          if transform_type in policy['Transform']:
              _policydata = _policy_info()
              if transform_type + 'Args' in policy['Transform']:
                  t_kwargs = policy['Transform'][transform_type + 'Args']
              return getattr(_policydata, policy['Transform'][transform_type])(value, **t_kwargs)
          else:
              return value
      else:
          if 'Registry' in policy:
              if value == '(value not set)':
                  return 'Not Defined'
          return valuf _transform_value(value, policy, transform_type):
      '''
      helper function to transform the policy value into something that more
      closely matches how the policy is displayed in the gpedit GUI
      '''
      t_kwargs = {}
      if 'Transform' in policy:
          if transform_type in policy['Transform']:
              _policydata = _policy_info()
              if transform_type + 'Args' in policy['Transform']:
                  t_kwargs = policy['Transform'][transform_type + 'Args']
              return getattr(_policydata, policy['Transform'][transform_type])(value, **t_kwargs)
          else:
              return value
      else:
          if 'Registry' in policy:
              if value == '(value not set)':
                  return 'Not Defined'
          return value
docs: helper function to transform the policy value into something that more
      closely matches how the policy is displayed in the gpedit GUI