code: def can_api_key_access_build(param_name):
      
      build_id = (
          request.args.get(param_name, type=int) or
          request.form.get(param_name, type=int) or
          request.json[param_name])
      utils.jsonify_assert(build_id, 'build_id required')
  
      if app.config.get('IGNORE_AUTH'):
          api_key = models.ApiKey(
              id='anonymous_superuser',
              secret='',
              superuser=True)
          build = models.Build.query.get(build_id)
          utils.jsonify_assert(build is not None, 'build must exist', 404)
      else:
          ops = _get_api_key_ops()
          api_key, build = ops.can_access_build(build_id)
  
      return api_key, build
docs: Determines if the current API key can access the build in the request.
  
      Args:
          param_name: Parameter name to use for getting the build ID from the
              request. Will fetch from GET or POST requests.
  
      Returns:
          (api_key, build) The API Key and the Build it has access to.