get_modality_by_id# torch_brain.registry.get_modality_by_id(modality_id)[source]# Get a modality specification by its ID. Parameters: modality_id (int) – The numeric ID of the modality to retrieve Returns: The modality specification Return type: ModalitySpec Raises: KeyError – If no modality exists with the given ID