code: def init_log_writer(output_dir):
      return zlog.ZLogger(
          os.path.join(output_dir, str(int(time.time()))),
          overwrite=True,
      )
  
imports: import json
  import numpy
  import os
  import random
  import time
  import torch
  from dataclasses import dataclass
  from typing import Any
  import jiant.utils.python.io
  import jiant.utils.zlog
label_desc: Use image node_id 6 for calling a global function with example usage: init_log_writer(output_dir) and returns: zlog