code: def __contains__(self, item):
      if item is None or item == self.__class__._SINGLETON:
          assert super().__len__() == 0 or self.is_singleton()
          return super().__contains__(self.__class__._SINGLETON)
  
      elif isinstance(item, (list, tuple)):
          for name in item:
              if name not in self:
                  return False
          return True
  
      elif not isinstance(item, str):
          raise TensorforceError.type(
              name="NestedDict", argument="key", dtype=type(item)
          )
  
      elif item.startswith(self.__class__._SINGLETON + "/"):
          raise TensorforceError.value(
              name="NestedDict", argument="item", value=item
          )
  
      elif self.is_singleton():
          value = self.singleton()
          if isinstance(value, self.value_type):
              return False
          else:
              return item in value
  
      elif "/" in item:
          item, subitem = item.split("/", 1)
          if super().__contains__(item):
              value = super().__getitem__(item)
              assert isinstance(value, self.__class__)
              return subitem in value
          else:
              return False
  
      else:
          return super().__contains__(item)
  
imports: from collections import OrderedDict
  from tensorforce import TensorforceError
label_desc: Use image node_id 13 for calling the NestedDict obj's underlying member method code with example usage: obj.__contains__(item) and returns: super, True, False, False, unknown, super, unknown, False