def __init__(self, function: Callable[[], str], name: str = 'State'):
    """Initializes the component.

    Args:
      function: the function that returns a string to report as state of the
        component.
      name: The name of the component.
    """
    self._function = function
    self._name = name
Initializes the component.

    Args:
      function: the function that returns a string to report as state of the
        component.
      name: The name of the component.
    
concordia/components/deprecated/report_function.py