code: def shared_constructor(ctor, remove=False):
      if remove:
          shared.constructors.remove(ctor)
      else:
          shared.constructors.append(ctor)
      return ctor
  
file_path: Theano/theano/compile/sharedvalue.py
imports: from __future__ import absolute_import, print_function, division
  import copy
  import logging
  import numpy
  from theano.gof import Container, Variable, generic, utils
label_desc: Use image node_id 1 for calling a global function with example usage: shared_constructor(ctor, remove) and returns: ctor