code: def scrub_string(string, replacement=b""):
      """Scrub a string from a VCR response body string"""
  
      def before_record_response(response):
          len_before = len(response["body"]["string"])
          response["body"]["string"] = re.sub(
              string, replacement, response["body"]["string"]
          )
          len_diff = len(response["body"]["string"]) - len_before
          if "content-length" in response["headers"]:
              response["headers"]["content-length"] = [
                  str(
                      int(response["headers"]["content-length"][0])
                      + len_diff
                  )
              ]
          return response
  
      return before_record_response
  
imports: import re
  import threading
  from datetime import datetime
  from functools import reduce
  from os import environ
  from os.path import abspath, dirname, exists, isfile, join
  import pytest
  import yaml
  from pytest_socket import disable_socket
  from vcr import VCR
  import sentinelsat
  from sentinelsat import SentinelAPI, geojson_to_wkt, read_geojson
  from .custom_serializer import BinaryContentSerializer
label_desc: Use image node_id 4 for calling a global function with example usage: scrub_string(string, replacement) and returns: before_record_response, response