def response(url):
  if globs.hobj:
    return globs.hobj.status_code
  else:
    try:
      return requests.get(url, timeout=5).status_code
    except:
      return "Error"
Get the cloudpipe instance for a project from context.
dataset/ETHPy150Open miklevin/pipulate/common.py/response--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/cloudpipe.py/CloudpipeController._get_cloudpipe_for_project