GCP - Cloud Pub/Sub
Identify the error in this Python code snippet for publishing a message:
from google.cloud import pubsub_v1 publisher = pubsub_v1.PublisherClient() topic_path = 'projects/my-project/topics/my-topic' publisher.publish(topic_path, data='Hello')
