code: def _get_integer(value):
      try:
          return int(value)
      except (TypeError, ValueError):
          raise ValueError("{0} is not a valid integer".format(value))
  
imports: from __future__ import unicode_literals
  import re
  import socket
  from datetime import datetime, time, timedelta
  from email.utils import parsedate_tz, mktime_tz
  from six.moves.urllib.parse import urlparse
  import aniso8601
  import pytz
label_desc: Use image node_id 9 for calling a global function with example usage: _get_integer(value) and returns: int