code: def check_keys(lines, start, end, exp_keys):
      if not exp_keys:
          assert start not in lines
          return
      assert start in lines
      start_idx = lines.index(start)
      end_idx = lines.index(end, start_idx)
      found_lines = lines[start_idx + 1 : end_idx]
      found_keys = [line.split()[0] for line in found_lines if line]
      assert found_keys == exp_keys
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_footer.py
imports: import re
  import numpy
  import pytest
  import wandb
label_desc: Use image node_id 2 for calling a global function with example usage: check_keys(lines, start, end, exp_keys) without return types