class_docstr: This op can be inplace if behaviour is 'times1_inplace'
  This op can be destructive if behaviour is 'times2_inplace'
  
  In both cases, it does not set the destroy_map or view_map correctly so
  it should raise an error in DebugMode.
class_docstr_tok: ["This","op","can","be","inplace","if","behaviour","is","'times1_inplace'","This","op","can","be","destructive","if","behaviour","is","'times2_inplace'","In","both","cases",",","it","does","not","set","the","destroy_map","or","view_map","correctly","so","it","should","raise","an","error","in","DebugMode","."]
code: def __init__(self, behaviour):
      gof.Op.__init__(self)
      self.behaviour = behaviour
  
imports: from __future__ import absolute_import, print_function, division
  import sys
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  from six import reraise
  from theano import config
  from theano import gof
  import theano
  from theano.compat import exc_message
  from theano.compile import debugmode
  import theano.tensor
  from theano.tests import unittest_tools
label_desc: Use image node_id 1 to create a new WeirdBrokenOp object from inherited base classes: gof with example: obj = WeirdBrokenOp(behaviour)