code: def is_valid_host(value):
      
      host_validators = validators.ipv4, validators.ipv6, validators.domain
      return any(f(value) for f in host_validators)
docs: Check if given value is a valid host string.
  
      :param value: a value to test
      :returns: True if the value is valid