class_docstr: Union of types.
  
  We say that ``type(x) is U(type1, ..., typeN)`` if type of ``x`` is one of ``type1``, ..., ``typeN``.
  
  This is a helper class that can be used in situations where unions are otherwise hard or impossible to declare.
  For example, one doesn't need a union type to in the test ``assert_is_type(x, int, str, None)``, but if we want to
  have unions as dictionary keys we can say: ``assert_is_type(d, {str: U(int, bool, None)})``.
class_docstr_tok: ["Union","of","types",".","We","say","that","``","type","(","x",")","is","U","(","type1",",","...",",","typeN",")","``","if","type","of","``","x","``","is","one","of","``","type1","``",",","...",",","``","typeN","``",".","This","is","a","helper","class","that","can","be","used","in","situations","where","unions","are","otherwise","hard","or","impossible","to","declare",".","For","example",",","one","does","n't","need","a","union","type","to","in","the","test","``","assert_is_type","(","x",",","int",",","str",",","None",")","``",",","but","if","we","want","to","have","unions","as","dictionary","keys","we","can","say",":","``","assert_is_type","(","d",",","{","str",":","U","(","int",",","bool",",","None",")","}",")","``","."]
docstr: Return True if the variable matches this type, and False otherwise.
docstr_tok: ["Return","True","if","the","variable","matches","this","type",",","and","False","otherwise","."]
code: def check(self, var):
      """Return True if the variable matches this type, and False otherwise."""
      return any(_check_type(var, tt) for tt in self._types)
  
imports: from h2o.utils.compatibility import *
  import importlib
  import io
  import re
  import sys
  import tokenize
  from types import BuiltinFunctionType, FunctionType
  from h2o.exceptions import H2OTypeError, H2OValueError
label_desc: Use image node_id 2 for calling the U obj's underlying member method code with example usage: obj.check(var) and returns: any