code: def test_local_det_chol():
      X = matrix("X")
      L = pt.linalg.cholesky(X)
      det_X = pt.linalg.det(X)
  
      f = function([X], [L, det_X])
  
      nodes = f.maker.fgraph.toposort()
      assert not any(isinstance(node, Det) for node in nodes)
  
      # This previously raised an error (issue #392)
      f = function([X], [L, det_X, X])
      nodes = f.maker.fgraph.toposort()
      assert not any(isinstance(node, Det) for node in nodes)
  
imports: from functools import partial
  import numpy
  import pytest
  import scipy.linalg
  from numpy.testing import assert_allclose
  import pytensor
  from pytensor import function
  from pytensor import tensor
  from pytensor.compile import get_default_mode
  from pytensor.configdefaults import config
  from pytensor.tensor import swapaxes
  from pytensor.tensor.blockwise import Blockwise
  from pytensor.tensor.elemwise import DimShuffle
  from pytensor.tensor.math import _allclose, dot, matmul
  from pytensor.tensor.nlinalg import Det, MatrixInverse, matrix_inverse
  from pytensor.tensor.rewriting.linalg import inv_as_solve
  from pytensor.tensor.slinalg import Cholesky, Solve, SolveBase, SolveTriangular, cho_solve, cholesky, solve, solve_triangular
  from pytensor.tensor.type import dmatrix, matrix, tensor, vector
  from tests import unittest_tools
  from tests.test_rop import break_op
label_desc: Use image node_id 6 for calling a global function with example usage: test_local_det_chol() without return types