def list_topics(stub, project):
    req = pubsub_pb2.ListTopicsRequest(project=project)
    try:
        resp = stub.ListTopics(req, TIMEOUT)
        for t in resp.topics:
            print("Topic is: {}".format(t.name))
    except NetworkError, e:
        logging.warning('Failed to list topics: {}'.format(e))
        sys.exit(1)
Convert a POSIX path to the current system's format and prepend the
dataset/ETHPy150Open GoogleCloudPlatform/cloud-pubsub-samples-python/grpc/pubsub_sample.py/list_topics--crossover with--dataset/ETHPy150Open Yelp/mrjob/tests/mockssh.py/rel_posix_to_abs_local