def get_uri(self):
    if self._host.startswith('http'):
        return self._host
    elif self._model_version:
        return f'http://{self._host}:{self._port}/v2/models/{self._model_name}/versions/{self._model_version}/infer'
    else:
        return f'http://{self._host}:{self._port}/v2/models/{self._model_name}/infer'
def get_uri(self):
    if self._host.startswith('http'):
        return self._host
    elif self._model_version:
        return f'http://{self._host}:{self._port}/v2/models/{self._model_name}/versions/{self._model_version}/infer'
    else:
        return f'http://{self._host}:{self._port}/v2/models/{self._model_name}/infer'