code: def write_collection_data(self, path, data):
          
          flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC
          fd = os.open(path, flags, 0o600)
          with os.fdopen(fd, 'w') as dyn_conf_file:
              dyn_conf_file.write(data)
docs: Write collections rules to disk