code: def str_to_number(value):
      # note: this expects a string as input that was accepted by the
      # parser already, with an optional "-" sign in front
      is_neg = False
      if value[:1] == "-":
          is_neg = True
          value = value[1:]
      if len(value) < 2:
          value = int(value, 0)
      elif value[0] == "0":
          literal_type = value[1]  # 0'o' - 0'b' - 0'x'
          if literal_type in "xX":
              # hex notation ('0x1AF')
              value = int(value[2:], 16)
          elif literal_type in "oO":
              # Py3 octal notation ('0o136')
              value = int(value[2:], 8)
          elif literal_type in "bB":
              # Py3 binary notation ('0b101')
              value = int(value[2:], 2)
          else:
              # Py2 octal notation ('0136')
              value = int(value, 8)
      else:
          value = int(value, 0)
      return -value if is_neg else value
  
imports: from __future__ import absolute_import
  import os
  import sys
  import re
  import io
  import codecs
  import shutil
  import tempfile
  from contextlib import contextmanager
label_desc: Use image node_id 19 for calling a global function with example usage: str_to_number(value) and returns: unknown