code: def test_mlp_profiled(self):
      if config.mode in ("DebugMode", "DEBUG_MODE"):
          pytest.skip("Can't profile in DebugMode")
      m = models.Mlp()
      profile = compile.profiling.ProfileStats(False)
      f = function(m.inputs, m.outputs, profile=profile)
      x_val = self.rng.normal(0, 1, (1000, m.nfeatures))
      f(x_val)
      self.check(f)
  
file_path: pytensor/tests/d3viz/test_d3viz.py
imports: import filecmp
  import os.path
  import tempfile
  import numpy
  import pytest
  import pytensor.d3viz
  from pytensor import compile
  from pytensor.compile.function import function
  from pytensor.configdefaults import config
  from pytensor.printing import pydot_imported, pydot_imported_msg
  from tests.d3viz import models
label_desc: Use image node_id 4 for calling the TestD3Viz obj's underlying member method code with example usage: obj.test_mlp_profiled() without return types