code: def test_colored_str_output(case: Case) -> None:
      stream = io.StringIO()
      render.render_colorized_json(case.input, stream, indent="  ")
      assert stream.getvalue() == case.output + "\n"
  
imports: import inspect
  import io
  import os
  import sys
  import tempfile
  import uuid
  from collections import namedtuple
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Sequence, Tuple, TypeVar, Union
  from unittest import mock
  import pytest
  import requests
  import requests_mock
  from determined.cli import cli, ntsc, render
  from determined.common import constants, context
  from determined.common.api import bindings
  from tests.filetree import FileTree
label_desc: Use image node_id 13 for calling a global function with example usage: test_colored_str_output(case) without return types