code: def build_api_access_required(f):
      
      @functools.wraps(f)
      def wrapped(*args, **kwargs):
          g.api_key, g.build = can_api_key_access_build('build_id')
          return f(*args, **kwargs)
      return wrapped
docs: Decorator ensures API key has access to the build ID in the request.
  
      Always calls the given function with the models.Build entity as the
      first positional argument.