code: def _ParseBinaryDataAsString(self, parser_mediator, binary_data_value):
      
      if not binary_data_value:
        return None
  
      try:
        return binary_data_value.decode('utf-8')
      except UnicodeDecodeError:
        parser_mediator.ProduceExtractionWarning(
            'invalid binary data string value: {0:s}'.format(
                repr(binary_data_value)))
        return None
docs: Parses a binary data value as string
  
      Args:
        parser_mediator (ParserMediator): mediates interactions between parsers
            and other components, such as storage and dfvfs.
        binary_data_value (bytes): binary data value
            (CSSM_DB_ATTRIBUTE_FORMAT_BLOB)
  
      Returns:
        str: binary data value formatted as a string or None if no string could
            be extracted or binary data value is None (NULL).