code: def remove_arguments(self, command, tags_delete, flags=False):
      for tag in tags_delete:
          if flags:
              command = re.sub(tag, "", command)
          else:
              command = re.sub(
                  "{} [:a-zA-Z0-9_.\-/]*".format(tag), "", command
              )
      return command
  
imports: import copy
  import os
  import os.path
  import shlex
  import subprocess
  from pathlib import Path
  import re
  from typing import List, Optional, Tuple
  from run_tests_common import TestData
label_desc: Use image node_id 2 for calling the FlatbufferTest obj's underlying member method code with example usage: obj.remove_arguments(command, tags_delete, flags) and returns: command