code: def format_time(
      timestamp: Optional[datetime],
      fill_value: Optional[str] = "-",
      iso: bool = False,
      **kwargs,
  ) -> Optional[str]:
      if not timestamp:
          return fill_value
      if iso:
          return timestamp.isoformat()
      if timestamp.date() == date.today():
          fmt = "%I:%M %p"
      else:
          fmt = "%b %d, %Y"
      return timestamp.strftime(fmt)
  
imports: from collections import Counter, defaultdict
  from datetime import date, datetime
  from typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, List, Literal, Mapping, NamedTuple, Optional, Set, Tuple, Union
  from dvc.exceptions import InvalidArgumentError
  from dvc.log import logger
  from dvc.scm import Git
  from dvc.ui import ui
  from dvc.utils.flatten import flatten
  from .collect import collect
label_desc: Use image node_id 8 for calling a global function with example usage: format_time(timestamp, fill_value, iso) and returns: timestamp, fill_value, timestamp