class_docstr: An example of a model with side-effects.
  
  This uses the same network as ``MLP`` except that it includes an
  example of side-effect code.
code: def example_side_effect(self):
      # Any code that needs to run each iteration inside the `__call__()`
      # method should be wrapped inside of a method/function like this
      # using the `@static_code` decorator.
      self.side_effect_counter += 1
      if self.side_effect_counter % 1000 == 0:
          print("Side effect counter: ", self.side_effect_counter)
  
imports: from __future__ import print_function
  import argparse
  import warnings
  import numpy
  import chainer
  import chainer.functions
  import chainer.links
  from chainer import static_code
  from chainer import static_graph
  from chainer import training
  from chainer.training import extensions
  import chainerx
  import matplotlib
label_desc: Use image node_id 2 for calling the MLPSideEffect obj's underlying member method code with example usage: obj.example_side_effect() without return types