class_docstr: Executes a callback as task 
class_docstr_tok: ["Executes","a","callback","as","task"]
docstr: :param callback: callable to be executed during the task.
      Arguments can be passed using keyword arguments.
docstr_tok: [":","param","callback",":","callable","to","be","executed","during","the","task",".","Arguments","can","be","passed","using","keyword","arguments","."]
code: def __init__(self, callback: Callable[..., None]) -> None:
      """
      :param callback: callable to be executed during the task.
          Arguments can be passed using keyword arguments.
      """
      super().__init__()
      self.callback = callback
  
file_path: GPflow/gpflow/monitor/base.py
imports: from abc import ABC, abstractmethod
  from typing import Any, Callable, Collection, Union
  import tensorflow
label_desc: Use image node_id 1 to create a new ExecuteCallback object from inherited base classes: MonitorTask with example: obj = ExecuteCallback(callback)