def METHOD_NAME(loop: Any) -> None:
    request = make_mocked_request("GET", "http://python.org/logo.png", headers={})
    gz_filepath = mock.create_autospec(Path, spec_set=True)
    gz_filepath.is_file.return_value = True
    filepath = mock.create_autospec(Path, spec_set=True)
    filepath.name = "logo.png"
    filepath.with_name.return_value = gz_filepath
    filepath.stat.return_value.st_size = 1024
    filepath.stat.return_value.st_mtime_ns = 1603733507222449291
    file_sender = FileResponse(filepath)
    file_sender._path = filepath
    file_sender._sendfile = make_mocked_coro(None)  # type: ignore[method-assign]
    loop.run_until_complete(file_sender.prepare(request))
    assert filepath.open.called
    assert not gz_filepath.open.called