code: def test_mlp_profiled(self):
      if th.config.mode in ("DebugMode", "DEBUG_MODE"):
          raise SkipTest("Can't profile in DebugMode")
      m = models.Mlp()
      profile = th.compile.profiling.ProfileStats(False)
      f = th.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: Theano/theano/d3viz/tests/test_d3viz.py
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import os.path
  import tempfile
  import unittest
  import filecmp
  import theano
  import theano.d3viz
  from theano.d3viz.tests import models
  from nose.plugins.skip import SkipTest
  from theano.d3viz.formatting import pydot_imported, pydot_imported_msg
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