Replicate Google Drive HYPERLINK in another account with same duplicate files

I’m not sure if same file (in different accounts) has same URL Link… I guess Google Generate a Unique File ID and generate different URL’s although the file in practice can be the same. How someone can know if File #1 belongs to Account #1 or #2? User of Account #1 can change sharing settings without notice