importlogginglogger=logging.getLogger(__name__)fromagenticaiframework.hubimportHub# Example: Using the Hub# ----------------------# This example demonstrates how to:# 1. Create a Hub# 2. Register services# 3. Retrieve and use services## Expected Output:# - Confirmation of service registration# - Output from the retrieved serviceif__name__=="__main__":# Create a hubhub=Hub()# Define a sample servicedefsample_service():return"Service executed successfully."# Register the servicehub.register_service("SampleService",sample_service)logger.info("Service 'SampleService' registered.")# Retrieve and use the serviceservice=hub.get_service("SampleService")ifservice:logger.info("Service Output:",service())else:logger.info("Service not found.")