code: def duplicate_statements(model, oldorigin, neworigin, rfilter=None):
      '''
      Take links with a given origin, and create duplicate links with the same information but a new origin
  
      :param model: Versa model to be updated
      :param oldres: resource IRI to be duplicated
      :param newres: origin resource IRI for duplication
      :return: None
      '''
      for o, r, t, a in model.match(oldorigin):
          if rfilter is None or rfilter(o, r, t, a):
              model.add(I(neworigin), r, t, a)
      returf duplicate_statements(model, oldorigin, neworigin, rfilter=None):
      '''
      Take links with a given origin, and create duplicate links with the same information but a new origin
  
      :param model: Versa model to be updated
      :param oldres: resource IRI to be duplicated
      :param newres: origin resource IRI for duplication
      :return: None
      '''
      for o, r, t, a in model.match(oldorigin):
          if rfilter is None or rfilter(o, r, t, a):
              model.add(I(neworigin), r, t, a)
      return
docs: Take links with a given origin, and create duplicate links with the same information but a new origin
  
      :param model: Versa model to be updated
      :param oldres: resource IRI to be duplicated
      :param newres: origin resource IRI for duplication
      :return: None