Converts input into a :class:`HealthCheck` tuple. Input can be passed as string, tuple, list, or a dictionary. If
    set to ``None``, the health check will be set to ``NONE``, i.e. override an existing configuration from the image.

    :param value: Health check input.
    :type value: unicode | str | tuple | list | NoneType
    :return: HealthCheck tuple
    :rtype: HealthCheck

def get_healthcheck(value):
    """
    Converts input into a :class:`HealthCheck` tuple. Input can be passed as string, tuple, list, or a dictionary. If
    set to ``None``, the health check will be set to ``NONE``, i.e. override an existing configuration from the image.

    :param value: Health check input.
    :type value: unicode | str | tuple | list | NoneType
    :return: HealthCheck tuple
    :rtype: HealthCheck
    """
    if isinstance(value, HealthCheck):
        return value
    elif isinstance(value, six.string_types + (lazy_type,)) or uses_type_registry(value):
        return HealthCheck(value)
    elif isinstance(value, (tuple, list)):
        return HealthCheck(*value)
    elif isinstance(value, dict):
        return HealthCheck(**value)
    raise ValueError(
        "Invalid type; expected a list, tuple, dict, or string type, found {0}.".format(type(value).__name__))