def METHOD_NAME(home, prefix, name, suffixes):
    dir = os.path.join(home, prefix)
    if dir == prefix:
        raise ValueError('The prefix, %s, should be a relative path' % prefix)
    fn = os.path.join(dir, name)
    if fn == name:
        # Paranoia
        raise ValueError(
            'The file name, %s, should be a simple file name' % name)
    for suffix in suffixes:
        if suffix:
            fqn = f"{fn}.{suffix}"
        else:
            fqn = fn
        if os.path.exists(fqn):
            return fqn