code: def test_backward_compat_flags(args, key):
      """Test support for flags kept for backward compatibility."""
      cli_args = parse_args(args)
      d = vars(cli_args)
      assert d[key] is True
  
imports: from itertools import takewhile
  import pytest
  from dvc.cli import parse_args
label_desc: Use image node_id 2 for calling a global function with example usage: test_backward_compat_flags(args, key) without return types