code: def test_color_status():
      # status -> (plain, colored)
      statuses = {
          "ok": ("ok", "\033[1;32mok\033[0m"),
          "notneeded": ("notneeded", "\033[1;32mnotneeded\033[0m"),
          "impossible": ("impossible", "\033[1;33mimpossible\033[0m"),
          "error": ("error", "\033[1;31merror\033[0m"),
          "invalid": ("invalid", "invalid"),
      }
  
      for enabled in (True, False):
          with patch(
              "datalad.support.ansi_colors.color_enabled",
              lambda: enabled,
          ):
              for status, retopts in statuses.items():
                  assert_equal(
                      colors.color_status(status), retopts[enabled]
                  )
  
imports: import os
  from unittest.mock import patch
  from datalad.support import ansi_colors
  from datalad.tests.utils_pytest import assert_equal, patch_config
label_desc: Use image node_id 4 for calling a global function with example usage: test_color_status() without return types