parameters: (shape, name)
return_statement: return shape
docstring: 检验shape长度，超过4则截断
docstring_summary: 检验shape长度，超过4则截断
docstring_tokens: 检验shape长度，超过4则截断
function: def validateShape(shape, name):
      """检验shape长度，超过4则截断"""
      if len(shape) > 4:
          newShape = shape[-4:]
          print('\033[31m ' + name + ' tensor shape length > 4, 处理为丢弃头部shape \033[0m')
          return newShape
      return shape
function_tokens: def validateShape ( shape , name ) : if len ( shape ) > 4 : newShape = shape [ - 4 : ] print ( '\033[31m ' + name + ' tensor shape length > 4, 处理为丢弃头部shape \033[0m') return newShape return shape