def encode(self, o):
    # Our encoding prepends an 'x:' prefix.
    return 'x:%s' % str(o.name)
Encode to bytes with a trace that coder was used.
dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/examples/cookbook/group_with_coder.py/PlayerCoder.encode