code: def datetime(self, *args):
      time_datetime = datetime.datetime.now()
  
      time_format = (
          args[0]
          if (args and args[0] != "")
          else self.default_time_format
      )
      try:
          time_zone = pytz.timezone(args[1]) if len(args) > 1 else None
      except pytz.exceptions.UnknownTimeZoneError:
          time_zone = None
  
      time_zone_time = time_datetime.astimezone(time_zone)
      try:
          formatted_time = time_zone_time.strftime(time_format)
      except (ValueError, TypeError):
          formatted_time = time_zone_time.strftime(
              self.default_time_format
          )
  
      return sanitize_filename_part(
          formatted_time, replace_spaces=False
      )
  
imports: from __future__ import annotations
  import datetime
  import pytz
  import io
  import math
  import os
  from collections import namedtuple
  import re
  import numpy
  import piexif
  import piexif.helper
  from PIL import Image, ImageFont, ImageDraw, ImageColor, PngImagePlugin
  import string
  import json
  import hashlib
  from modules import sd_samplers, shared, script_callbacks, errors
  from modules.paths_internal import roboto_ttf_file
  from modules.shared import opts
label_desc: Use image node_id 6 for calling the FilenameGenerator obj's underlying member method code with example usage: obj.datetime() and returns: sanitize_filename_part