input: 
  def string_contains_number(string: str) -> bool:
      """Check if a given string contains any numbers.
      
      >>> string_contains_number("abc123")
      True
      >>> string_contains_number("abc")
      False
      >>> string_contains_number("123")
      True
      """
      pattern = re.compile(r"\d")
      return pattern.search(string) is not None
  
output:     import re