def DSSet(dstype, objectname, attribute=None, value=None):
  ds_path = '/%ss/%s' % (dstype.capitalize(), objectname)
  cmd = [_DSCL, '.', '-create', ds_path]
  if attribute:
    cmd.append(attribute)
    if value:
      if type(value) == type(list()):
        cmd.extend(value)
      else:
        cmd.append(value)
  (unused_stdout, stderr, returncode) = gmacpyutil.RunProcess(cmd)
  if returncode:
    raise DSException('Cannot set %s for %s: %s' % (attribute,
                                                    ds_path,
                                                    stderr))
DirectoryServices attribute set.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/ds.py/DSSet