code: def check_file(file_contents: str) -> bool:
      """Check file for the snippet"""
      return bool(
          re.search(
              r"^if __name__ == \"__main__\":", file_contents, re.M
          )
      )
  
file_path: ray/ci/lint/pytest_checker.py
imports: import json
  import re
  import sys
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: check_file(file_contents) and returns: bool