code: def get_action(self, state, greedy=False):
      _logits = self.model(np.array([state]))
      _probs = tf.nn.softmax(_logits).numpy()
      if greedy:
          return np.argmax(_probs.ravel())
      return tl.rein.choice_action_by_probs(_probs.ravel())
  
imports: import argparse
  import time
  import matplotlib.pyplot
  import os
  import gym
  import numpy
  import tensorflow
  import tensorlayer
label_desc: Use image node_id 3 for calling the Actor obj's underlying member method code with example usage: obj.get_action(state, greedy) and returns: tl, np