def __repr__(self):
    if hasattr(self, '_config'):
        config = json.dumps(self._config, indent=4)
        return f'''{super().__repr__()} initialized with config:
{config}'''
    return super().__repr__()
def __repr__(self):
    if hasattr(self, '_config'):
        config = json.dumps(self._config, indent=4)
        return f'{super().__repr__()} initialized with config:
{config}'
    return super().__repr__()