parameters: (origin_endpoints, offset=0)
return_statement: return paddle_user_define_endpoints
docstring: origin_endpoint: ip:port
      user_define_endpoint: ip:(port+offset)
docstring_summary: origin_endpoint: ip:port
      user_define_endpoint: ip:(port+offset)
docstring_tokens: origin_endpoint : ip : port user_define_endpoint : ip : ( port + offset )
function: def get_custom_endpoints(origin_endpoints, offset=0):
      """
      origin_endpoint: ip:port
      user_define_endpoint: ip:(port+offset)
      """
      assert origin_endpoints != None
      paddle_user_define_endpoints_list = []
      for ip_port in origin_endpoints.split(","):
          ip = ip_port.split(":")[0]
          port = ip_port.split(":")[1]
          new_port = int(port) + offset
          paddle_user_define_endpoints_list.append(":".join((ip, str(new_port))))
      paddle_user_define_endpoints = ",".join(paddle_user_define_endpoints_list)
      return paddle_user_define_endpoints
function_tokens: def get_custom_endpoints ( origin_endpoints , offset = 0 ) : assert origin_endpoints != None paddle_user_define_endpoints_list = [ ] for ip_port in origin_endpoints . split ( "," ) : ip = ip_port . split ( ":" ) [ 0 ] port = ip_port . split ( ":" ) [ 1 ] new_port = int ( port ) + offset paddle_user_define_endpoints_list . append ( ":" . join ( ( ip , str ( new_port ) ) ) ) paddle_user_define_endpoints = "," . join ( paddle_user_define_endpoints_list ) return paddle_user_define_endpoints