class_docstr: HiFiC Model class.
class_docstr_tok: ["HiFiC","Model","class","."]
code: def _compute_distortion_loss(self, nodes: Nodes):
      input_image, reconstruction = (
          nodes.input_image,
          nodes.reconstruction,
      )
      with tf.name_scope("distortion"):
          input_image = tf.cast(input_image, tf.float32)
          reconstruction = tf.cast(reconstruction, tf.float32)
          sq_err = tf.math.squared_difference(
              input_image, reconstruction
          )
          distortion_loss = tf.reduce_mean(sq_err)
          return distortion_loss
  
imports: import collections
  import glob
  import itertools
  from compare_gan.gans import loss_lib
  import tensorflow.compat.v1
  import tensorflow_datasets
  from hific import archs
  from hific import helpers
  from hific.helpers import ModelMode
  from hific.helpers import ModelType
  from hific.helpers import TFDSArguments
label_desc: Use image node_id 22 for calling the HiFiC obj's underlying member method code with example usage: obj._compute_distortion_loss(nodes) and returns: distortion_loss