code: def _make_frame_with_filename(tb, idx, filename):
      """Return a copy of an existing stack frame with a new filename."""
      frame = tb[idx]
      return FrameSummary(
          filename, frame.lineno, frame.name, frame.line
      )
  
imports: import collections
  import os
  import re
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import error_interpolation
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import traceable_stack
  from tensorflow.python.ops import control_flow_assert
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import script_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: _make_frame_with_filename(tb, idx, filename) and returns: FrameSummary