class_docstr: Main network which does cross-lingual embeddings training
docstr: Runs discriminator part of GAN
  Arguments:
      sess(tf.session): Tensorflow Session
      local_lr(float): Learning rate
docstr_tok: ["Runs","discriminator","part","of","GAN","Arguments",":","sess","(","tf.session",")",":","Tensorflow","Session","local_lr","(","float",")",":","Learning","rate"]
code: def run_discriminator(self, sess, local_lr):
      """
      Runs discriminator part of GAN
      Arguments:
          sess(tf.session): Tensorflow Session
          local_lr(float): Learning rate
      """
      # Generate random ids to look up
      src_ids = np.random.choice(
          self.most_freq, self.batch_size, replace=False
      )
      tgt_ids = np.random.choice(
          self.most_freq, self.batch_size, replace=False
      )
      train_dict = {
          self.generator.src_ph: src_ids,
          self.generator.tgt_ph: tgt_ids,
          self.discriminator.do_ph: 0.9,
          self.lr_ph: local_lr,
      }
      return sess.run(
          [self.discriminator.disc_cost, self.discriminator.disc_opt],
          feed_dict=train_dict,
      )
  
imports: from __future__ import print_function, division
  import io
  import os
  import time
  import numpy
  import scipy
  import tensorflow
label_desc: Use image node_id 6 for calling the WordTranslator obj's underlying member method code with example usage: obj.run_discriminator(sess, local_lr) and returns: sess