code: def reset_layer(self, layer, preserve_keys=()):
          
          self._reset_layer(layer, [k.split('.') for k in preserve_keys], prefix=[])
docs: Removes any value and metadata associated with the named layer.
  
          Parameters
          ----------
          layer : str
              Name of the layer to reset.
          preserve_keys : list or tuple
              A list of keys to skip while removing data
  
          Raises
          ------
          TypeError
              If the node is frozen
          KeyError
              If the named layer does not exist