code: def __init__(
      self,
      arg=None,
      *,
      value_type=None,
      overwrite=None,
      singleton=None,
      **kwargs,
  ):
      super().__init__()
      super().__setattr__("value_type", value_type)
      super().__setattr__("overwrite", overwrite)
      if singleton is not None:
          if arg is not None or len(kwargs) > 0:
              raise TensorforceError.invalid(
                  name="NestedDict", argument="singleton"
              )
          self[None] = singleton
      elif arg is None:
          self.update(**kwargs)
      else:
          self.update(arg, **kwargs)
  
imports: from collections import OrderedDict
  from tensorforce import TensorforceError
label_desc: Use image node_id 1 to create a new NestedDict object from inherited base classes: OrderedDict with example: obj = NestedDict(arg)