code: def test_quote_string():
      assert quote_string("hello world!") == '"hello world!"'
      assert quote_string("") == '""'
      assert quote_string("hello world!") == '"hello world!"'
      assert quote_string("abc") == '"abc"'
      assert quote_string("") == '""'
      assert quote_string('"') == r'"\""'
      assert quote_string(r"foo \ bar") == r'"foo \\ bar"'
      assert quote_string(r"foo \" bar") == r'"foo \\\" bar"'
      assert quote_string('a"a') == r'"a\"a"'
  
file_path: redis-py/tests/test_helpers.py
imports: import string
  from redis.commands.helpers import delist, list_or_args, nativestr, parse_to_dict, parse_to_list, quote_string, random_string
label_desc: Use image node_id 7 for calling a global function with example usage: test_quote_string() without return types