code: def assert_re_in(regex, c, flags=0):
      """Assert that container (list, str, etc) contains entry matching the regex"""
      if not isinstance(c, (list, tuple)):
          c = [c]
      for e in c:
          if re.match(regex, e, flags=flags):
              return
      raise AssertionError(
          f"Not a single entry matched {regex!r} in {c!r}"
      )
  
imports: from __future__ import annotations
  import os
  import re
  import sys
  import typing
  import unittest
  import warnings
  from contextlib import nullcontext
  from itertools import zip_longest
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from .helpers import assert_data_similar, bytesio_filemap, bytesio_round_trip
  from .np_features import memmap_after_ufunc
label_desc: Use image node_id 5 for calling a global function with example usage: assert_re_in(regex, c, flags) without return types