code: def strip_trailing_whitespace(r):
      return "\n".join([l.rstrip() for l in r.split("\n")])
  
file_path: pytorch/test/dynamo/test_after_aot.py
imports: import io
  import os
  import shutil
  import sys
  import tempfile
  import unittest
  import torch._dynamo.test_case
  from torch._dynamo.repro.after_aot import InputReader, InputWriter, save_graph_repro
  from torch.fx.experimental.proxy_tensor import make_fx
  from torch.testing._internal.common_utils import IS_FBCODE
  from torch.utils._traceback import report_compile_source_on_error
label_desc: Use image node_id 1 for calling a global function with example usage: strip_trailing_whitespace(r) and returns: str