code: def check_distribution_strategy():
      if tf.distribute.has_strategy():
          strategy = tf.distribute.get_strategy()
          if not isinstance(strategy, _SUPPORTED_STRATEGIES):
              raise ValueError(
                  "Sonnet optimizers are not compatible with `{}`. "
                  "Please use one of `{}` instead.".format(
                      strategy.__class__.__name__,
                      "`, `".join(
                          s.__name__ for s in _SUPPORTED_STRATEGIES
                      ),
                  )
              )
  
imports: from typing import Sequence
  from sonnet.src import types
  from sonnet.src.distribute import replicator
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: check_distribution_strategy() without return types