code: def iter_briefs(briefs: Union[dict, Sequence[dict]]) -> tuple:
      
  
      if isinstance(briefs, dict):
          if all(ok_wallet_reft(k) for k in briefs):
              return tuple(briefs.values())
          return (briefs,)
      return tuple(briefs)
docs: Given a cred-brief/cred-info, an sequence thereof, or cred-brief-dict
      (as HolderProver.get_cred_briefs_by_proof_req_q() returns), return tuple with
      all contained cred-briefs.
  
      :param briefs: cred-brief/cred-info, sequence thereof, or cred-brief-dict
      :return: tuple of cred-briefs