code: def test_format_sacred_error(
      print_traceback, filter_traceback, print_usage, expected
  ):
      try:
          raise SacredError(
              "message", print_traceback, filter_traceback, print_usage
          )
      except SacredError as e:
          st = format_sacred_error(e, "usage")
          assert re.match(expected, st, re.MULTILINE)
  
file_path: sacred/tests/test_exceptions.py
imports: import re
  from sacred import Ingredient, Experiment
  from sacred.utils import CircularDependencyError, ConfigAddedError, MissingConfigError, NamedConfigNotFoundError, format_filtered_stacktrace, format_sacred_error, SacredError
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_format_sacred_error(print_traceback, filter_traceback, print_usage, expected) without return types