class_docstr: HiFiC Model class.
class_docstr_tok: ["HiFiC","Model","class","."]
docstr: Computes noisy/quantized rd-loss and creates summaries.
docstr_tok: ["Computes","noisy\/quantized","rd-loss","and","creates","summaries","."]
code: def _create_rd_loss(self, nodes: Nodes, bpp_pair: BppPair, step):
      """Computes noisy/quantized rd-loss and creates summaries."""
  
      with tf.name_scope("loss"):
          distortion_loss = self._compute_distortion_loss(nodes)
          rd_loss = self._loss_scaler.get_rd_loss(
              distortion_loss, bpp_pair, step
          )
  
          tf.summary.scalar("distortion_loss", distortion_loss)
          tf.summary.scalar("rd_loss", rd_loss)
  
          return rd_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 21 for calling the HiFiC obj's underlying member method code with example usage: obj._create_rd_loss(nodes, bpp_pair, step) and returns: rd_loss