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(f"Unknown parameter type: {type(param)}")
  
file_path: pytensor/pytensor/compile/function/pfunc.py
imports: from collections.abc import Sequence
  from copy import copy
  from typing import Optional, Union, overload
  from pytensor.compile.function.types import Function, UnusedInputError, orig_function
  from pytensor.compile.io import In, Out
  from pytensor.compile.profiling import ProfileStats
  from pytensor.compile.sharedvalue import SharedVariable, shared
  from pytensor.configdefaults import config
  from pytensor.graph.basic import Constant, Variable, clone_node_and_cache
  from pytensor.graph.fg import FunctionGraph
label_desc: Use image node_id 8 for calling a global function with example usage: _pfunc_param_to_in(param, strict, allow_downcast) and returns: In, param