docs: def use_file(
      filename: typing.Union[Path, str, None], trust: bool = False
  ) -> typing.Union[types.ModuleType, None]:
      """Load filename as a python file. Import ``filename`` and return it
      as a module.
      """
      config_file = filename or resolve_path(CONFIG_FILE)
  
      def preview_unauthorized() -> None:
          if not config_file:
              return None
          print(SEPARATOR, file=sys.stderr)
          with Path(config_file).open("r", encoding="utf-8") as fp:
              for line in fp:
                  print(line, end="", file=sys.stderr)
          print(SEPARATOR, file=sys.stderr)
  
      if config_file and not Path(config_file).exists():
          print_error(f'"{filename}" not found.')
          sys.exit(1)
      if config_file and Path(config_file).exists():
          if not trust:
              with AuthFile.load() as authfile:
                  try:
                      authfile.check(Path(config_file))
                  except KonchrcChangedError:
                      print_error(f'"{config_file}" has changed since you last used it.')
                      preview_unauthorized()
                      if confirm("Would you like to authorize it?"):
                          authfile.allow(Path(config_file))
                          print()
                      else:
                          sys.exit(1)
                  except KonchrcNotAuthorizedError:
                      print_error(f'"{config_file}" is blocked.')
                      preview_unauthorized()
                      if confirm("Would you like to authorize it?"):
                          authfile.allow(Path(config_file))
                          print()
                      else:
                          sys.exit(1)
  
          logger.info(f"Using {config_file}")
          # Ensure that relative imports are possible
          __ensure_directory_in_path(Path(config_file))
          mod = None
          try:
              mod = imp.load_source("konchrc", str(config_file))
          except UnboundLocalError:  # File not found
              pass
          else:
              return mod
      if not config_file:
          print_warning("No konch config file found.")
      else:
          print_warning(f'"{config_file}" not found.')
      return None