code: def is_required(object_schema: dict, key: str) -> bool:
      return key in object_schema.get("required", [])
  
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 4 for calling a global function with example usage: is_required(object_schema, key) and returns: unknown