code: def int_from_string(s):
      """Asymptotically fast version of PyLong_FromString(), conversion
      of a string of decimal digits into an 'int'."""
      # PyLong_FromString() has already removed leading +/-, checked for invalid
      # use of underscore characters, checked that string consists of only digits
      # and underscores, and stripped leading whitespace.  The input can still
      # contain underscores and have trailing whitespace.
      s = s.rstrip().replace("_", "")
      return _str_to_int_inner(s)
  
file_path: cpython/Lib/_pylong.py
imports: import re
  import decimal
label_desc: Use image node_id 4 for calling a global function with example usage: int_from_string(s) and returns: _str_to_int_inner