def METHOD_NAME(tmp_dir, dvc, local_cloud, local_remote):
    local_cloud.gen("foo", "foo")
    stage = dvc.imp_url(str(local_cloud / "foo"), to_remote=True)
    assert stage.md5 is not None
    status = dvc.status()
    assert status["foo.dvc"] == [{"changed outs": {"foo": "not in cache"}}]
    dvc.pull()
    status = dvc.status()
    assert len(status) == 0