class_docstr: Base class for the task of object detection
  
  Args:
      opts: Command-line arguments
      encoder: Image-encoder model (e.g., MobileNet or ResNet)
docstr: Initialize weights of a given layer
docstr_tok: ["Initialize","weights","of","a","given","layer"]
code: def reset_layer_parameters(
      layer: nn.Module, opts: argparse.Namespace
  ) -> None:
      """Initialize weights of a given layer"""
      initialize_weights(opts=opts, modules=layer.modules())
  
file_path: ml-cvnets/cvnets/models/detection/base_detection.py
imports: import argparse
  from typing import Dict
  from torch import nn
  from cvnets.misc.init_utils import initialize_weights
  from cvnets.models import MODEL_REGISTRY, BaseAnyNNModel, get_model
  from cvnets.models.classification.base_image_encoder import BaseImageEncoder
  from utils import logger
label_desc: Use image node_id 3 for calling the BaseDetection obj's underlying member method code with example usage: obj.reset_layer_parameters(layer, opts) without return types