code: def check_test_callbacks(lines: List[str], **kwargs: Dict) -> None:
      """
      All test_{begin,end} calls should happen outside of train_workload_{begin,end} periods.
      """
      do_check_with_table(
          lines,
          {
              train_begin: {None},
              train_workload_begin: {
                  train_begin,
                  train_workload_end,
                  test_end,
              },
              train_workload_end: {train_workload_begin},
              test_begin: {train_begin, train_workload_end},
              test_batch_begin: {test_begin, test_batch_end},
              test_batch_end: {test_batch_begin},
              test_end: {test_batch_end},
              train_end: {test_end, train_workload_end},
          },
      )
  
imports: import io
  from typing import Any, Callable, Dict, List, Optional, Set
  import determined
  import determined.keras
label_desc: Use image node_id 7 for calling a global function with example usage: check_test_callbacks(lines) without return types