code: def _write(self, commit=False):
      # TODO: we just ignore commit to ensure backward capability
      with open(self._fname, "w") as f:
          f.write(util.json_dumps_safer(self._json_dict))
          f.write("\n")
          f.flush()
          os.fsync(f.fileno())
      if self._h5:
          self._h5.close()
          self._h5 = None
      if wandb.run and wandb.run._jupyter_agent:
          wandb.run._jupyter_agent.start()
  
imports: import json
  import os
  import time
  from wandb_gql import gql
  import wandb
  from wandb import util
  from wandb.apis.internal import Api
  from wandb.sdk import lib
  from wandb.sdk.data_types.utils import val_to_json
label_desc: Use image node_id 3 for calling the FileSummary obj's underlying member method code with example usage: obj._write(commit) without return types