class_docstr: Object that "owns" a file on a filesystem. If the ``filename`` is None,
  it maintains a temporary file which name is accessible via ``name``
  attribute; when pickling, the contents of this file is pickled;
  when unpickling, a new temp file is created; temp files are auto-deleted.
code: def __setstate__(self, state):
      data = state.pop("__FILE_RESOURCE_DATA__", None)
      self.__dict__.update(state)
  
      if data is not None:
          assert self.name is None
          self.ensure_name()
          with open(self.name, "wb") as f:
              f.write(data)
  
file_path: sklearn-crfsuite/sklearn_crfsuite/_fileresource.py
imports: from __future__ import absolute_import
  import os
  import tempfile
label_desc: Use image node_id 7 for calling the FileResource obj's underlying member method code with example usage: obj.__setstate__(state) without return types