code: def test_redact_info():
      example_text = "This string contains a domain gmail.com"
      result_text = redact_info(example_text, presidio_engine())
      assert isinstance(result_text, str)
      assert example_text != result_text
      assert (
          result_text == "This string contains a domain <DOMAIN_NAME>"
      )
  
file_path: data-describe/tests/test_detection.py
imports: import pytest
  from data_describe.compat import _compat, _is_dataframe
  from data_describe.privacy.detection import sensitive_data, SensitiveDataWidget, presidio_engine
  from data_describe.privacy.detection import identify_pii, redact_info, encrypt_text, hash_string
label_desc: Use image node_id 3 for calling a global function with example usage: test_redact_info() without return types