class_docstr: ResNet in mesh_tensorflow.
code: def set_activation_type(self):
      hparams = self._hparams
      if hparams.activation_dtype == "float32":
          activation_dtype = tf.float32
      elif hparams.activation_dtype == "float16":
          activation_dtype = tf.float16
      elif hparams.activation_dtype == "bfloat16":
          activation_dtype = tf.bfloat16
      else:
          raise ValueError(
              "unknown hparams.activation_dtype %s"
              % hparams.activation_dtype
          )
      return activation_dtype
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import mesh_tensorflow
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.utils import mtf_model
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 1 for calling the MtfResNet obj's underlying member method code with example usage: obj.set_activation_type() and returns: activation_dtype