code: def is_valid(line, valid_expr):
      if valid_expr == "*":
          return True
      if valid_expr in line:
          return True
      return False
  
file_path: PaddleSeg/test_tipc/extract_loss.py
imports: import sys
  import argparse
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: is_valid(line, valid_expr) and returns: False, True, True