code: def remove_vars_prefix(
      program: paddle.static.Program,
      prefix: str,
      vars: List[paddle.static.Variable] = None,
      excludes: Callable = None,
  ):
      """ """
      block = program.global_block()
      vars = (
          [var for var in vars if var.startswith(prefix)]
          if vars
          else [
              var for var in block.vars.keys() if var.startswith(prefix)
          ]
      )
      vars = (
          [var for var in vars if var not in excludes]
          if excludes
          else vars
      )
      for var in vars:
          rename_var(block, var, var.replace(prefix, "", 1))
  
file_path: PaddleHub/paddlehub/compat/paddle_utils.py
imports: import contextlib
  import copy
  from typing import Callable
  from typing import List
  import paddle
  from paddle.framework import core
  from paddlehub.utils.utils import Version
label_desc: Use image node_id 6 for calling a global function with example usage: remove_vars_prefix(program, prefix, vars, excludes) without return types