def METHOD_NAME(model: str, address: str = DEFAULT_ADDRESS, port: str = DEFAULT_REST_PORT,
            version: str = None, service: str = None):
    version_string = ""
    if version is not None:
        version_string = "/versions/{}".format(version)
    if version == "all":
        version_string = "/all"
    service_string = ""
    if service is not None:
        service_string = service
    rest_url = 'http://{}:{}/v1/models/{}{}{}'.format(address, port, model, version_string, service_string)
    return rest_url