code: def hyp_score(log_probs, length, length_penalty):
      lp = L.pow(
          (5.0 + L.cast(length, "float32")) / 6.0, length_penalty
      )
      return log_probs / lp
  
file_path: PaddleHub/modules/text/text_generation/reading_pictures_writing_poems_for_midautumn/MidAutumnPoetry/model/decode.py
imports: import re
  import numpy
  from collections import namedtuple
  import paddle.fluid
  import paddle.fluid.layers
  import paddle.fluid.dygraph
label_desc: Use image node_id 5 for calling a global function with example usage: hyp_score(log_probs, length, length_penalty) and returns: unknown