code: def fastface_backbone(model_name: str, pretrained: bool, **kwargs):
      if pretrained:
          pl_model = ff.FaceDetector.from_pretrained(
              model_name, **kwargs
          )
      else:
          arch, config = model_name.split("_")
          pl_model = ff.FaceDetector.build(arch, config, **kwargs)
  
      backbone = getattr(pl_model, "arch")
  
      return backbone, pl_model
  
imports: from functools import partial
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.imports import _FASTFACE_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: fastface_backbone(model_name, pretrained) and returns: backbone,  pl_model