def InsertShimImports(text: str) -> str:
  """A preprocessor which inserts a set of shim imports.

  Args:
    text: Text to prepend imports to.

  Returns:
    The text with imports prepended.
  """
  return f"""\
import java.io.*;
import java.nio.charset.*;
import java.nio.file.*;
import java.util.*;
import java.time.format.*;

{text}  
"""