class_docstr: Factory object for creating layers, this uses given factory functions to actually produce the types or constructing
  callables. These functions are referred to by name and can be added at any time.
class_docstr_tok: ["Factory","object","for","creating","layers",",","this","uses","given","factory","functions","to","actually","produce","the","types","or","constructing","callables",".","These","functions","are","referred","to","by","name","and","can","be","added","at","any","time","."]
docstr: Get the constructor for the given factory name and arguments.
  
  Raises:
      TypeError: When ``factory_name`` is not a ``str``.
docstr_tok: ["Get","the","constructor","for","the","given","factory","name","and","arguments",".","Raises",":","TypeError",":","When","``","factory_name","``","is","not","a","``","str","``","."]
code: def get_constructor(self, factory_name: str, *args) -> Any:
      """
      Get the constructor for the given factory name and arguments.
  
      Raises:
          TypeError: When ``factory_name`` is not a ``str``.
  
      """
  
      if not isinstance(factory_name, str):
          raise TypeError(
              f"factory_name must a str but is {type(factory_name).__name__}."
          )
  
      component = look_up_option(factory_name.upper(), self.components)
  
      return component.value(*args)
  
imports: from __future__ import annotations
  import warnings
  from collections.abc import Callable
  from typing import Any
  import torch.nn
  from monai.networks.utils import has_nvfuser_instance_norm
  from monai.utils import ComponentStore, look_up_option, optional_import
label_desc: Use image node_id 5 for calling the LayerFactory obj's underlying member method code with example usage: obj.get_constructor(factory_name) and returns: component