def check_format(self, format, instance_dict):
        """
        Check if the given instance dictionary matches the specified format/schema.

        Args:
            format (dict): The JSON schema format.
            instance_dict (dict): The instance dictionary to be validated.

        Returns:
            bool: True if the instance matches the format, False otherwise.

        """
        try:
            validate(instance=instance_dict, schema=format)
            return True
        except Exception:
            return False

        Check if the given instance dictionary matches the specified format/schema.

        Args:
            format (dict): The JSON schema format.
            instance_dict (dict): The instance dictionary to be validated.

        Returns:
            bool: True if the instance matches the format, False otherwise.

        
llama-index-packs/llama-index-packs-secgpt/llama_index/packs/secgpt/spoke_operator.py