class_docstr: Base class for weight update methods.
  
  Attributes:
    all_layers_names: list of layer names in a model.
    recycle_type: neuron, layer based.
    dead_neurons_threshold: below this threshold a neuron is considered dead.
    reset_layers: list of layer names to be recycled.
    reset_start_layer_idx: index of the layer from which we start recycling.
    reset_period: int represents the period of weight update.
    reset_start_step: start recycle from start step
    reset_end_step:  end recycle from end step
    logging_period:  the period of statistics logging e.g., dead neurons.
    prev_neuron_score: score at last reset step or log step in case of no reset.
    sub_mean_score: if True the average activation will be subtracted
                    for each neuron when we calculate the score.
class_docstr_tok: ["Base","class","for","weight","update","methods",".","Attributes",":","all_layers_names",":","list","of","layer","names","in","a","model",".","recycle_type",":","neuron",",","layer","based",".","dead_neurons_threshold",":","below","this","threshold","a","neuron","is","considered","dead",".","reset_layers",":","list","of","layer","names","to","be","recycled",".","reset_start_layer_idx",":","index","of","the","layer","from","which","we","start","recycling",".","reset_period",":","int","represents","the","period","of","weight","update",".","reset_start_step",":","start","recycle","from","start","step","reset_end_step",":","end","recycle","from","end","step","logging_period",":","the","period","of","statistics","logging","e.g.",",","dead","neurons",".","prev_neuron_score",":","score","at","last","reset","step","or","log","step","in","case","of","no","reset",".","sub_mean_score",":","if","True","the","average","activation","will","be","subtracted","for","each","neuron","when","we","calculate","the","score","."]
code: def is_intermediated_required(self, update_step):
      return self.is_logging_step(update_step)
  
imports: import functools
  import logging
  import flax
  from flax import linen
  import gin
  import jax
  from jax import random
  import jax.numpy
  import optax
label_desc: Use image node_id 7 for calling the BaseRecycler obj's underlying member method code with example usage: obj.is_intermediated_required(update_step) and returns: self