code: def test_pydotprint_profile():
      # Just check that pydotprint does not crash with profile.
  
      # Skip test if pydot is not available.
      if not theano.printing.pydot_imported:
          raise SkipTest("pydot not available")
  
      if theano.config.mode in ("DebugMode", "DEBUG_MODE"):
          raise SkipTest("Can't profile in DebugMode")
  
      A = tensor.matrix()
      prof = theano.compile.ProfileStats(
          atexit_print=False, gpu_checks=False
      )
      f = theano.function([A], A + 1, profile=prof)
      theano.printing.pydotprint(f, print_output_file=False)
      f([[1]])
      theano.printing.pydotprint(f, print_output_file=False)
  
imports: from __future__ import absolute_import, print_function, division
  import logging
  from nose.plugins.skip import SkipTest
  import numpy
  from six.moves import StringIO
  import theano
  import theano.tensor
  from theano.printing import min_informative_str, debugprint
label_desc: Use image node_id 4 for calling a global function with example usage: test_pydotprint_profile() without return types