def METHOD_NAME(profile_file):
  """Initialize a profiler from profile file."""
  print_mdl.METHOD_NAME(compat.as_bytes(profile_file))
  profiler = model_analyzer.Profiler.__new__(model_analyzer.Profiler)
  yield profiler
  print_mdl.DeleteProfiler()