code: def _pfunc_param_to_in(param, strict=False, allow_downcast=None):
      if isinstance(param, Constant):
          raise TypeError("Constants not allowed in param list", param)
      if isinstance(param, Variable):  # N.B. includes SharedVariable
          return In(
              variable=param,
              strict=strict,
              allow_downcast=allow_downcast,
          )
      elif isinstance(param, In):
          return param
      raise TypeError("Unknown parameter type: %s" % type(param))
  
file_path: Theano/theano/compile/pfunc.py
imports: from __future__ import absolute_import, print_function, division
  import warnings
  from theano import config
  from six import iteritems
  from theano.compile import orig_function, In, Out
  from theano.compile import UnusedInputError
  from theano.compile.sharedvalue import SharedVariable, shared
  from theano.compile.profiling import ProfileStats
  from theano.gof import Variable, Constant
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: _pfunc_param_to_in(param, strict, allow_downcast) and returns: In, param