code: def random_id() -> str:
      """Generates a random string that is also a valid Kubernetes DNS name.
  
      Returns:
        A random string valid for Kubernetes DNS name.
      """
      now = time.time()
      random.seed(now)
      alpha = "".join(
          random.choices(string.ascii_lowercase + string.digits, k=10)
      )
      return f"{int(now)}-{alpha}"
  
file_path: tfx/tfx/orchestration/test_utils.py
imports: import contextlib
  import os
  import random
  import string
  import subprocess
  import time
  from absl import logging
  import docker
label_desc: Use image node_id 1 for calling a global function with example usage: random_id() and returns: int, str, alpha