code: def check_id(schema: dict, path: str, ctx: LintContext) -> Errors:
      if not ctx.toplevel:
          return []
  
      if "$id" not in schema:
          return [(path, "$id is missing")]
  
      subpath = path + ".$id"
  
      exp = "http://determined.ai/schemas/" + ctx.filepath
      if schema["$id"] != exp:
          return [
              (
                  subpath,
                  f"$id ({schema['$id']}) is not correct for filename",
              )
          ]
  
      return []
  
imports: import argparse
  import json
  import os
  import re
  import sys
  from typing import Callable, List, Optional, Tuple, TypeVar, Union
label_desc: Use image node_id 3 for calling a global function with example usage: check_id(schema, path, ctx) and returns: list, list, list, list