code: def str_to_int(s):
      """Asymptotically fast version of decimal string to 'int' conversion."""
      # FIXME: this doesn't support the full syntax that int() supports.
      m = re.match(r"\s*([+-]?)([0-9_]+)\s*", s)
      if not m:
          raise ValueError("invalid literal for int() with base 10")
      v = int_from_string(m.group(2))
      if m.group(1) == "-":
          v = -v
      return v
  
file_path: cpython/Lib/_pylong.py
imports: import re
  import decimal
label_desc: Use image node_id 5 for calling a global function with example usage: str_to_int(s) and returns: v