code: def eval_outputs(outputs, ops=(), mode=None):
      f = inplace_func([], outputs, mode=mode)
      variables = f()
      if ops:
          assert any(
              isinstance(node.op, ops)
              for node in f.maker.fgraph.apply_nodes
          )
      if isinstance(variables, (tuple, list)) and len(variables) == 1:
          return variables[0]
      return variables
  
imports: import os
  from copy import copy
  from itertools import combinations
  from tempfile import mkstemp
  import numpy
  import pytest
  import pytensor
  from pytensor import function, shared
  from pytensor.compile.mode import get_default_mode
  from pytensor.configdefaults import config
  from pytensor.graph.utils import MethodNotDefined
  from pytensor.misc.safe_asarray import _asarray
  from pytensor.tensor.type import TensorType, complex_dtypes, discrete_dtypes, float_dtypes
  from tests import unittest_tools
label_desc: Use image node_id 4 for calling a global function with example usage: eval_outputs(outputs, ops, mode) and returns: variables, variables