code: def date_filename(base_dir="./"):
      dt = datetime.datetime.now()
      return os.path.join(
          base_dir,
          "{}_{:02d}-{:02d}-{:02d}".format(
              dt.date(), dt.hour, dt.minute, dt.second
          ),
      )
  
file_path: dgl/examples/pytorch/dgmg/utils.py
imports: import datetime
  import os
  import random
  from pprint import pprint
  import matplotlib.pyplot
  import torch
  import torch.backends.cudnn
  import torch.nn
  import torch.nn.init
label_desc: Use image node_id 2 for calling a global function with example usage: date_filename(base_dir) and returns: os