code: def yamlmod(obj, *paths):
      '''
      Combines/creates a yaml file and combines with obj.  obj and file must be maps/dict or empty.
      '''
      oldobj = yamlload(*paths)
      if obj is not None:
          if oldobj:
              yamlsave({**oldobj, **obj}, *paths)
          else:
              yamlsave(obj, *pathsf yamlmod(obj, *paths):
      '''
      Combines/creates a yaml file and combines with obj.  obj and file must be maps/dict or empty.
      '''
      oldobj = yamlload(*paths)
      if obj is not None:
          if oldobj:
              yamlsave({**oldobj, **obj}, *paths)
          else:
              yamlsave(obj, *paths)
docs: Combines/creates a yaml file and combines with obj.  obj and file must be maps/dict or empty.