class_docstr: CWR* Strategy.
  
  This plugin does not use task identities.
class_docstr_tok: ["CWR","*","Strategy",".","This","plugin","does","not","use","task","identities","."]
code: def get_cwr_layer(self) -> Optional[Linear]:
      result = None
      if self.cwr_layer_name is None:
          last_fc = get_last_fc_layer(self.model)
          if last_fc is not None:
              result = last_fc[1]
      else:
          result = get_layer_by_name(self.model, self.cwr_layer_name)
  
      return result
  
file_path: avalanche/avalanche/training/plugins/cwr_star.py
imports: import logging
  from collections import defaultdict
  from typing import Optional
  import numpy
  import torch
  from torch.nn import Linear
  from avalanche.training.plugins.strategy_plugin import SupervisedPlugin
  from avalanche.training.utils import examples_per_class, get_last_fc_layer, get_layer_by_name, freeze_everything, unfreeze_everything
label_desc: Use image node_id 7 for calling the CWRStarPlugin obj's underlying member method code with example usage: obj.get_cwr_layer() and returns: result