code: def dropout(_input, keep_prob, is_training):
      if keep_prob < 1:
          output = tf.cond(
              is_training,
              lambda: tf.nn.dropout(_input, keep_prob),
              lambda: _input,
          )
      else:
          output = _input
      return output
  
imports: import os
  import shutil
  import tensorflow
  import numpy
  import time
  from datetime import timedelta
  import json
  import pickle
label_desc: Use image node_id 17 for calling the BasicModel obj's underlying member method code with example usage: obj.dropout(_input, keep_prob, is_training) and returns: output