def METHOD_NAME(self, reactor: MemoryReactor, clock: Clock, hs: HomeServer) -> None:
    self.store = hs.get_datastores().main
    # Inject a piece of media. We'll use this to ensure we're returning a sane
    # response when we're not supposed to block it, distinguishing a media block
    # from a regular 404.
    file_id = "abcdefg12345"
    file_info = FileInfo(server_name=self.remote_server_name, file_id=file_id)
    with hs.get_media_repository().media_storage.store_into_file(file_info) as (
        f,
        fname,
        finish,
    ):
        f.write(SMALL_PNG)
        self.get_success(finish())
    self.get_success(
        self.store.store_cached_remote_media(
            origin=self.remote_server_name,
            media_id=self.remote_media_id,
            media_type="image/png",
            media_length=1,
            time_now_ms=clock.time_msec(),
            upload_name="test.png",
            filesystem_id=file_id,
        )
    )