code: def write(self, oprot):
      if (
          oprot._fast_encode is not None
          and self.thrift_spec is not None
      ):
          oprot.trans.write(
              oprot._fast_encode(
                  self, [self.__class__, self.thrift_spec]
              )
          )
      else:
          oprot.writeStruct(self, self.thrift_spec)
  
file_path: infinity/third_party/thrift/lib/py/src/protocol/TBase.py
imports: from thrift.transport import TTransport
label_desc: Use image node_id 5 for calling the TBase obj's underlying member method code with example usage: obj.write(oprot) without return types