code: def __init__(self, **kwargs):
      self.type = None
      self.type_in = None
      self.inputs = None
      self.outputs = None
      self.input_has = None
      self.output_has = None
      self.cond = None
      self.reverse = False
  
      assert all([x in self.__dict__ for x in kwargs])
      self.__dict__.update(kwargs)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from functools import wraps
  import copy
  import numpy
  from caffe2.python import core, workspace
  from caffe2.proto import caffe2_pb2
label_desc: Use image node_id 1 to create a new OpFilter object from inherited base classes: object with example: obj = OpFilter()