code: def test_only_redact_data(compute_backend_pii_df):
      sensitivewidget = sensitive_data(
          compute_backend_pii_df, mode="redact", detect_infotypes=False
      )
      assert isinstance(sensitivewidget, SensitiveDataWidget)
      assert sensitivewidget.redact.shape == (1, 2)
      assert _is_dataframe(sensitivewidget.redact)
      assert sensitivewidget.redact["name"][1] == "<PERSON>"
      assert sensitivewidget.redact["domain"][1] == "<DOMAIN_NAME>"
      assert isinstance(sensitivewidget.redact["name"][1], str)
      assert isinstance(sensitivewidget.redact["domain"][1], str)
      assert isinstance(sensitivewidget.encrypt, type(None))
      assert isinstance(sensitivewidget.infotypes, type(None))
  
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 5 for calling a global function with example usage: test_only_redact_data(compute_backend_pii_df) without return types