Check whether a block contains multimodal data in OpenAI Chat Completions format.
Supports both data and ID-style blocks (e.g. 'file_data' and 'file_id')
If additional keys are present, they are ignored / will not affect outcome as long as the required keys are present and valid.
The content block to check.
If provided, only return True for blocks matching this specific type.
None, match any valid OpenAI data block type. Note that this means that
if the block has a valid OpenAI data type but the filter_ is set to a
different type, this function will return False.