code: def __init__(
      self, f: t.IO[t.Any], tmp_filename: str, real_filename: str
  ) -> None:
      self._f = f
      self._tmp_filename = tmp_filename
      self._real_filename = real_filename
      self.closed = False
  
imports: import codecs
  import io
  import os
  import re
  import sys
  import typing
  from weakref import WeakKeyDictionary
label_desc: Use image node_id 1 to create a new _AtomicFile object  with example: obj = _AtomicFile(f, tmp_filename, real_filename)