class_docstr: An immutable variant of the Python dict.
class_docstr_tok: ["An","immutable","variant","of","the","Python","dict","."]
docstr: Create a new FrozenDict where one entry is removed.
  
  Example::
  
    >>> from flax.core import FrozenDict
    >>> variables = FrozenDict({'params': {...}, 'batch_stats': {...}})
    >>> new_variables, params = variables.pop('params')
  
  Args:
    key: the key to remove from the dict
  Returns:
    A pair with the new FrozenDict and the removed value.
docstr_tok: ["Create","a","new","FrozenDict","where","one","entry","is","removed",".","Example",":",":",">",">",">","from","flax.core","import","FrozenDict",">",">",">","variables","=","FrozenDict","(","{","'params","'",":","{","...","}",",","'batch_stats","'",":","{","...","}","}",")",">",">",">","new_variables",",","params","=","variables.pop","(","'params","'",")","Args",":","key",":","the","key","to","remove","from","the","dict","Returns",":","A","pair","with","the","new","FrozenDict","and","the","removed","value","."]
code: def pop(self, key: K) -> Tuple["FrozenDict[K, V]", V]:
      """Create a new FrozenDict where one entry is removed.
  
      Example::
  
        >>> from flax.core import FrozenDict
        >>> variables = FrozenDict({'params': {...}, 'batch_stats': {...}})
        >>> new_variables, params = variables.pop('params')
  
      Args:
        key: the key to remove from the dict
      Returns:
        A pair with the new FrozenDict and the removed value.
      """
      value = self[key]
      new_dict = dict(self._dict)
      new_dict.pop(key)
      new_self = type(self)(new_dict)
      return new_self, value
  
imports: import collections
  from types import MappingProxyType
  from typing import Any, Dict, Hashable, Mapping, Tuple, TypeVar, Union
  import jax
  from flax import serialization
label_desc: Use image node_id 15 for calling the FrozenDict obj's underlying member method code with example usage: obj.pop(key) and returns: new_self,  value