def replace_file(self, file_edit_media, payload, mimetype, packaging=None, on_behalf_of=None, metadata_relevant=False):
        return self._make_request(file_edit_media, payload=payload, mimetype=mimetype, filename="unnamed",
                                    packaging=packaging, on_behalf_of=on_behalf_of, metadata_relevant=metadata_relevant,
                                    method="PUT")
API Sugar for replacing any given file (such as that retrieved from a feed of the media resource)
dataset/ETHPy150Open swordapp/python-client-sword2/sword2/connection.py/Connection.replace_file