code: def test_command_from_args_list_with_disallowed_option(self):
      arguments = [
          "/usr/bin/gcc",
          "-DTEST_DEFINE",
          "-fno-canonical-system-headers",
          "-c",
          "xla/compiler.cc",
          "-o",
          "bazel-out/k8-opt/bin/xla/_objs/compiler/compiler.pic.o",
      ]
  
      command = CompileCommand.from_args_list(arguments)
  
      self.assertEqual(command.file, "xla/compiler.cc")
      self.assertEqual(
          command.arguments, arguments[0:2] + arguments[3:]
      )
  
imports: from absl.testing import absltest
  from xla.build_tools.lint import generate_compile_commands
label_desc: Use image node_id 2 for calling the CompileCommandsTest obj's underlying member method code with example usage: obj.test_command_from_args_list_with_disallowed_option() without return types