class_docstr: ByteCodeVisitor
docstr: Consume byte-code
docstr_tok: ["Consume","byte-code"]
code: def consume(self):
      """
      Consume byte-code
      """
      generic_consume = getattr(self, "generic_consume", None)
  
      for instr in disassembler(self.code):
          method_name = "consume_%s" % (instr.opname)
          method = getattr(self, method_name, generic_consume)
          if not method:
              raise AttributeError(
                  "class %r has no method %r"
                  % (type(self).__name__, method_name)
              )
  
          self.instruction_pre(instr)
          method(instr)
          self.instruction_post(instr)
  
file_path: turicreate/src/python/turicreate/meta/bytecodetools/bytecode_consumer.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from .disassembler_ import disassembler
label_desc: Use image node_id 2 for calling the ByteCodeConsumer obj's underlying member method code with example usage: obj.consume() without return types