code: def test_fgraph_to_python_constant_outputs():
      """Make sure that constant outputs are handled properly."""
  
      y = constant(1)
  
      out_fg = FunctionGraph([], [y], clone=False)
  
      out_py = fgraph_to_python(out_fg, to_python)
  
      assert out_py()[0] is y.data
  
imports: import inspect
  from functools import singledispatch
  import numpy
  from pytensor import config
  from pytensor.graph.basic import Apply
  from pytensor.graph.fg import FunctionGraph
  from pytensor.graph.op import Op
  from pytensor.link.utils import fgraph_to_python, get_name_for_object, unique_name_generator
  from pytensor.scalar.basic import Add, float64
  from pytensor.tensor import constant
  from pytensor.tensor.elemwise import Elemwise
  from pytensor.tensor.type import scalar, vector
  from pytensor.tensor.type_other import NoneConst
label_desc: Use image node_id 7 for calling a global function with example usage: test_fgraph_to_python_constant_outputs() without return types