code: def is_in(
      val: Any, expected: Container[Any], reason: Optional[str] = None
  ) -> None:
      if val in expected:
          return
  
      msg = "CHECK FAILED! "
  
      # Report a more concise error message when `expected` is a dict.
      if isinstance(expected, dict):
          msg += "'{}' is not in {}".format(val, list(expected.keys()))
      else:
          msg += "'{}' is not in {}".format(val, expected)
  
      if reason is not None:
          msg += ": {}".format(reason)
  
      raise CheckFailedError(msg)
  
imports: from typing import Any, Container, Optional, Sized, Tuple, Type, Union
label_desc: Use image node_id 25 for calling a global function with example usage: is_in(val, expected, reason) without return types