docstr: Write a file containing the list of all outputs which are
  generated by this script.
code: def write_outputs(self, variable_name: str, filename: str) -> None:
      """Write a file containing the list of all outputs which are
      generated by this script."""
      content = "set({}\n    {})".format(
          variable_name,
          "\n    ".join(
              '"' + name + '"' for name in sorted(self.filenames)
          ),
      )
      self._write_if_changed(filename, content)
  
imports: import contextlib
  import functools
  import hashlib
  import os
  import re
  import sys
  import textwrap
  from argparse import Namespace
  from dataclasses import fields, is_dataclass
  from enum import auto, Enum
  from typing import Any, Callable, Dict, Generic, Iterable, Iterator, List, Literal, NoReturn, Optional, Sequence, Set, Tuple, TypeVar, Union
  from typing_extensions import Self
  from torchgen.code_template import CodeTemplate
label_desc: Use image node_id 7 for calling the FileManager obj's underlying member method code with example usage: obj.write_outputs(variable_name, filename) without return types