def METHOD_NAME(file_path: str, mode: str = "rb") -> Union[str, bytes]:
  """Loads file from the file path.
  Args:
    file_path: valid file path string.
    mode: a string specifies the model in which the file is opened. Use "rt" for
      reading in text mode; use "rb" for reading in binary mode.
  Returns:
    The loaded file in str or bytes.
  """
  with open(file_path, mode) as file:
    return file.read()