code: def remove_op(program, name):
      """
      remove op
      """
      block = program.global_block()
      for ids, op in list(enumerate(block.ops)):
          if op.type == name:
              block._remove_op(ids)
              return
  
file_path: PGL/apps/PGLBox/src/distributed_program.py
imports: import copy
  import paddle
  import paddle.static
  from place import get_cuda_places
label_desc: Use image node_id 3 for calling a global function with example usage: remove_op(program, name) without return types