import typing
import re


def contains(arr: typing.List[str], pattern: str):
  """Passes if at least one element of arr contain the pattern."""
  p = re.compile(pattern)
  for e in arr:
    if p.search(e):
      return True
  return False