code: def apply_profile(fgraph, node, profile):
      """Return apply profiling information."""
      if not profile or profile.fct_call_time == 0:
          return None
      time = profile.apply_time.get((fgraph, node), 0)
      call_time = profile.fct_call_time
      return [time, call_time]
  
imports: import os
  from functools import reduce
  import numpy
  import pytensor
  from pytensor.compile import Function, builders
  from pytensor.graph.basic import Apply, Constant, Variable, graph_inputs
  from pytensor.graph.fg import FunctionGraph
  from pytensor.printing import pydot_imported, pydot_imported_msg
label_desc: Use image node_id 4 for calling a global function with example usage: apply_profile(fgraph, node, profile) and returns: list, None