code: def BN_convert_float(module):
      """
      Utility function for network_to_half().
  
      Retained for legacy purposes.
      """
      if (
          isinstance(module, torch.nn.modules.batchnorm._BatchNorm)
          and module.affine is True
      ):
          module.float()
      for child in module.children():
          BN_convert_float(child)
      return module
  
imports: import torch
  import torch.nn
  from torch.autograd import Variable
  from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
label_desc: Use image node_id 1 for calling a global function with example usage: BN_convert_float(module) and returns: module