code: def is_bad(text: str) -> bool:
      """
      Returns true iff the given text looks like it contains mojibake.
  
      This can be faster than `badness`, because it returns when the first match
      is found to a regex instead of counting matches. Note that as strings get
      longer, they have a higher chance of returning True for `is_bad(string)`.
      """
      return bool(BADNESS_RE.search(text))
  
imports: import warnings
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: is_bad(text) and returns: bool