code: def _find_block_full_path(model, block_name):
      """Find the full path for a given block name
      e.g. block3-1 --> 3.block3-1
      """
      for name, _ in model.named_modules():
          if name.endswith(block_name):
              return name
      return None
  
file_path: ClassyVision/test/models_densenet_test.py
imports: import unittest
  import torch
  from classy_vision.generic.util import get_torch_version
  from classy_vision.models import build_model
  from test.generic.utils import compare_model_state
label_desc: Use image node_id 1 for calling a global function with example usage: _find_block_full_path(model, block_name) and returns: None, name