class_docstr: Generate random syntactically-valid Python ASTs.
code: def generate_UnaryOp(self):
      operand = self.generate_Name()
      op = UnaryOpSampler().sample()()
      return gast.UnaryOp(op, operand)
  
imports: import random
  import string
  import gast
  import numpy
  from tensorflow.python.autograph.pyct import templates
label_desc: Use image node_id 7 for calling the CodeGenerator obj's underlying member method code with example usage: obj.generate_UnaryOp() and returns: gast