@classmethod<EOL><INDENT>def write(cls):<DEDENT>
if cls.__name__ == '<STR_LIT>':<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>filename = "<STR_LIT>" % cls.topology_name<EOL>path = os.path.join(cls.topologydefn_tmpdir, filename)<EOL>with open(path, '<STR_LIT:wb>') as f:<EOL><INDENT>f.write(cls.protobuf_topology.SerializeToString())<EOL><DEDENT>
Writes the Topology .defn file to ``dest``

        This classmethod is meant be used by heron-cli when submitting a topology.