code: def check_if_then_else(
      schema: dict, path: str, ctx: LintContext
  ) -> Errors:
      if (
          "if" not in schema
          and "then" not in schema
          and "else" not in schema
      ):
          return []
  
      if "if" not in schema:
          return [(path, "found else or then clause without if clause")]
  
      if "then" not in schema and "else" in schema:
          return [
              (
                  path,
                  "found if-else without then clause... don't be confusing",
              )
          ]
  
      if "then" not in schema:
          return [(path, "found if clause with no then clause")]
  
      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 11 for calling a global function with example usage: check_if_then_else(schema, path, ctx) and returns: list, list, list, list, list