tf_agents.utils.common.check_tf1_allowed

Raises an error if running in TF1 (non-eager) mode and this is disabled.