code: def ProfilerFromFile(profile_file):
      """Initialize a profiler from profile file."""
      print_mdl.ProfilerFromFile(compat.as_bytes(profile_file))
      profiler = model_analyzer.Profiler.__new__(
          model_analyzer.Profiler
      )
      yield profiler
      print_mdl.DeleteProfiler()
  
imports: import contextlib
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_grad
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import rnn
  from tensorflow.python.ops import rnn_cell
  from tensorflow.python.ops import tensor_array_grad
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.profiler import model_analyzer
  from tensorflow.python.training import gradient_descent
  from tensorflow.python.util import _pywrap_tfprof
  from tensorflow.python.util import compat
label_desc: Use image node_id 5 for calling a global function with example usage: ProfilerFromFile(profile_file) without return types