code: def __url(self, loc, port=None):
      # always use the new api port
      if port is None:
          port = self.port
      if loc.startswith("/"):
          delim = ""
      else:
          delim = "/"
      u = "http://%s:%d%s%s" % (self.http_addr, port, delim, loc)
      return u
  
imports: import sys, os, getpass, logging, time, inspect, requests, json, pprint
  import h2o_test_utils
  from h2o_test_utils import log, log_rest
  import h2o_print
label_desc: Use image node_id 4 for calling the H2O obj's underlying member method code with example usage: obj.__url(loc, port) and returns: u