def write(self, oprot):
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
      return
    oprot.writeStructBegin('ping_args')
    if self.input is not None:
      oprot.writeFieldBegin('input', TType.I32, 1)
      oprot.writeI32(self.input)
      oprot.writeFieldEnd()
    oprot.writeFieldStop()
    oprot.writeStructEnd()
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/gen-py/djangothrift_test_gen/TestService.py/ping_args.write/original