code: def ipv6(value):
      """Validate an IPv6 address"""
      try:
          socket.inet_pton(socket.AF_INET6, value)
          return value
      except socket.error:
          raise ValueError(
              "{0} is not a valid ipv4 address".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 2 for calling a global function with example usage: ipv6(value) and returns: value