code: def execute(
      self, query: Query, *args: Any, **kwargs: Any
  ) -> "LoggingCursor":
      print(
          f"""====QUERY START====
  {query.strip() if isinstance(query, str) else str(query)}
  ====QUERY END===="""
      )
      start = time.time()
      super().execute(query, *args, **kwargs)
      end = time.time()
      print("query took (ms):", (end - start) * 1000)
      return self
  
file_path: determined/tools/scripts/replicate-metrics.py
imports: import concurrent.futures
  import contextlib
  import os
  import time
  from typing import Any, Dict, Generator, List, Set, Tuple, Union
  import psycopg
  from psycopg import sql
label_desc: Use image node_id 1 for calling the LoggingCursor obj's underlying member method code with example usage: obj.execute(query) and returns: self