code: def set_from_stat_result(self, stat_result):
          
          self.st_mode = stat_result.st_mode
          self.st_uid = stat_result.st_uid
          self.st_gid = stat_result.st_gid
          self._st_size = stat_result.st_size
          if sys.version_info < (3, 3):
              self._st_atime_ns = self.long_type(stat_result.st_atime * 1e9)
              self._st_mtime_ns = self.long_type(stat_result.st_mtime * 1e9)
              self._st_ctime_ns = self.long_type(stat_result.st_ctime * 1e9)
          else:
              self._st_atime_ns = stat_result.st_atime_ns
              self._st_mtime_ns = stat_result.st_mtime_ns
              self._st_ctime_ns = stat_result.st_ctime_ns
docs: Set values from a real os.stat_result.
          Note: values that are controlled by the fake filesystem are not set.
          This includes st_ino, st_dev and st_nlink.