code: def ensure_initialized_update_rule(param):
      u = param.update_rule
      if u.state is None:
          u._state = {}
          """FIXME: UpdateRule.state is read-only.
  
          But, force u.state = {}.
          """
  
          u.init_state(param)
  
imports: import multiprocessing
  import warnings
  import chainer
  import numpy
  import chainerrl
  from chainerrl.misc import random_seed
label_desc: Use image node_id 1 for calling a global function with example usage: ensure_initialized_update_rule(param) without return types