code: def get_endpoint(self):
          
          if self.endpoint:
              return self.endpoint
          else:
              return self.service_context.provider_info[self.endpoint_name]
docs: Find the service endpoint
  
          :return: The service endpoint (a URL)