code: def check_same_dtype(
      update: types.ParameterUpdate, parameter: tf.Variable
  ):
      if update.dtype != parameter.dtype:
          raise ValueError(
              "DType of update {!r} is not equal to that of parameter {!r}".format(
                  update, parameter
              )
          )
  
imports: from typing import Sequence
  from sonnet.src import types
  from sonnet.src.distribute import replicator
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: check_same_dtype(update, parameter) without return types