The issue seem to be fixed with the following code line:
cap = pyshark.FileCapture(file,
display_filter=filter,
custom_parameters={"--enable-protocol": "someip",
"--enable-heuristic": "someip_udp_heur"})
These additional custom_parameters
do the same as if to set in Wireshark the following: