code: def WriteTextFile(self, content):
      fname = os.path.join(self.get_temp_dir(), "text.txt")
      with gfile.GFile(fname, "w") as f:
          f.write(content)
      return [fname]
  
file_path: tensorflow/tensorflow/python/tools/print_selective_registration_header_test.py
imports: import os
  import sys
  from google.protobuf import text_format
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.tools import selective_registration_header_lib
label_desc: Use image node_id 3 for calling the PrintOpFilegroupTest obj's underlying member method code with example usage: obj.WriteTextFile(content) and returns: list