code: def ipv6_to_str(ip):
      
      if isinstance(ip, numbers.Integral):
          return addrconv.ipv6.bin_to_text(type_desc.Int16.from_user(ip))
      else:
          return addrconv.ipv6.bin_to_text(ip)
docs: Converts binary or int type representation to human readable IPv6 string.
      :param ip: binary or int type representation of IPv6 address
      :return: IPv6 address string