code: def load_tf_repeats(weights, layer, rptlen, subfun):
      if len(weights) % rptlen != 0:
          raise ValueError(
              f"Number of weight arrays ({len(weights)}) not divisible by {rptlen}"
          )
      weights_split = [
          weights[i : i + rptlen]
          for i in range(0, len(weights), rptlen)
      ]
      for i, w in enumerate(weights_split):
          subfun(w, getattr(layer, str(i)))
  
imports: import tensorflow
  import torch
  import json
  import os, sys
  from dependencies.facenet.src import facenet
  from dependencies.facenet.src.models import inception_resnet_v1
  from dependencies.facenet.src.align import detect_face
  from models.inception_resnet_v1 import InceptionResnetV1
  from models.mtcnn import PNet, RNet, ONet
label_desc: Use image node_id 12 for calling a global function with example usage: load_tf_repeats(weights, layer, rptlen, subfun) without return types