class_docstr: Serializer that stores any binary content in queries on disk as separate files
code: def deserialize(self, cassette_string):
      cassette_dict = self.base_serializer.deserialize(cassette_string)
      for interaction in cassette_dict["interactions"]:
          if interaction["request"]["method"] == "HEAD":
              continue
          response = interaction["response"]
          headers = {
              k.lower(): v for k, v in response["headers"].items()
          }
          if (
              "content-range" in headers
              and "content-disposition" in headers
          ):
              rg, size, filename = self._parse_headers(headers)
              path = Path(self.directory) / "data" / filename
              with path.open("rb") as f:
                  f.seek(rg[0])
                  content = f.read(rg[1] - rg[0] + 1)
              response["body"]["string"] = content
      return cassette_dict
  
file_path: sentinelsat/tests/custom_serializer.py
imports: import re
  from pathlib import Path
  from vcr.serializers import yamlserializer
label_desc: Use image node_id 2 for calling the BinaryContentSerializer obj's underlying member method code with example usage: obj.deserialize(cassette_string) and returns: cassette_dict