def METHOD_NAME(self, ctx):
    """Set global context for a QFunction.
       Args:
         ctx: Ceed User Context object holding context data"""
    # libCEED call
    err_code = lib.CeedQFunctionSetContext(
        self._pointer[0],
        ctx._pointer[0])
    self._ceed._check_error(err_code)