code: def get_endpoint(self, endpoint=None):
          
          base_url = self.api_config.api_url
          if not endpoint:
              if 'localhost' in base_url:
                  endpoint = ''
              else:
                  endpoint = ENDPOINTS[self.endpoint_type]
  
          endpoint = '/'.join([p.strip('/') for p in (base_url, endpoint)]).strip('/')
          self.logger.info("Using Endpoint: %s", endpoint)
          return endpoint
docs: Return interface URL endpoint.