I don’t think so. I saw a video of a person legally carrying a firearm openly in Wisconsin when a policeman approached and asked for ID. The person carrying simply asked what crime they were committing. The cop said, “Well, let me see your ID so I can determine that.” The person carrying refused and eventually the cop had to relent and allow the person to continue on.
If they have a ticketable infraction, you have a choice. Either you provide ID so they can ticket you, or they can detain you until they can establish your identity. If they can’t establish your identity they can hold you until you go to court. The difference between this incident and the one you are talking about is here there was an infraction, jaywalking.