Fix or ignore some pytype errors.
Fix or ignore some pytype errors.

PiperOrigin-RevId: 412228893

deepmind/deepmind-research,deepmind/deepmind-research,deepmind/deepmind-research,deepmind/deepmind-research