code: def test_strip_control_codes():
      assert strip_control_codes("") == ""
      assert strip_control_codes("foo\rbar") == "foobar"
      assert (
          strip_control_codes("Fear is the mind killer")
          == "Fear is the mind killer"
      )
  
file_path: rich/tests/test_control.py
imports: from rich.control import Control, escape_control_codes, strip_control_codes
  from rich.segment import ControlType, Segment
label_desc: Use image node_id 2 for calling a global function with example usage: test_strip_control_codes() without return types