code: def _recursive_register(module):
      named_tensors = [
          (key, value)
          for key, value in module.__dict__.items()
          if isinstance(value, Tensor)
      ]
      for name, tensor in named_tensors:
          delattr(module, name)
          module.register_buffer(name, tensor)
  
      for child_module in module.modules():
          if child_module is not module:
              _recursive_register(child_module)
  
file_path: lightning-flash/src/flash/image/embedding/losses/vissl_losses.py
imports: from typing import List, Union
  from torch import Tensor
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.imports import _VISSL_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: _recursive_register(module) without return types