parameters: (self, patterns=None)
docstring: r"""
          Args:
              patterns(Union[list[:class:`mindspore.graph_utils.graph_pattern`]]: list of forbidden patterns, each
              element should be one of the exposed Pattern instance.
  
          Raises:
              TypeError: raise type error for invalid argument.
docstring_summary: r"""
          Args:
              patterns(Union[list[:class:`mindspore.graph_utils.graph_pattern`]]: list of forbidden patterns, each
              element should be one of the exposed Pattern instance.
docstring_tokens: r Args : patterns ( Union [ list [ : class : mindspore . graph_utils . graph_pattern ]] : list of forbidden patterns each element should be one of the exposed Pattern instance .
function: def __init__(self, patterns=None):
          r"""
          Args:
              patterns(Union[list[:class:`mindspore.graph_utils.graph_pattern`]]: list of forbidden patterns, each
              element should be one of the exposed Pattern instance.
  
          Raises:
              TypeError: raise type error for invalid argument.
          """
          self.patterns = patterns
          if patterns is None:
              NoneOf_.__init__(self, ())
          elif isinstance(patterns, Pattern):
              NoneOf_.__init__(self, [patterns])
          elif isinstance(patterns, (tuple, list)) and all(isinstance(pattern, Pattern) for pattern in patterns):
              NoneOf_.__init__(self, patterns)
          else:
              raise TypeError(f"Expect list of Patterns/Pattern, got : {patterns}")
function_tokens: def __init__ ( self , patterns = None ) : self . patterns = patterns if patterns is None : NoneOf_ . __init__ ( self , ( ) ) elif isinstance ( patterns , Pattern ) : NoneOf_ . __init__ ( self , [ patterns ] ) elif isinstance ( patterns , ( tuple , list ) ) and all ( isinstance ( pattern , Pattern ) for pattern in patterns ) : NoneOf_ . __init__ ( self , patterns ) else : raise TypeError ( f"Expect list of Patterns/Pattern, got : {patterns}" )