parameters: (cls, match_kind: str, replacement_id: str, attrs: dict = None)
docstring: Fabric method to create proper object based on match_kind.
          :param match_kind: match kind.
          :param replacement_id: id of the replacement.
          :param attrs: optional attributes to be set.
          :return: object of the sub-class of the CustomLayerDescriptor class or None if the match kind is not registered.
docstring_summary: Fabric method to create proper object based on match_kind.
          :param match_kind: match kind.
          :param replacement_id: id of the replacement.
          :param attrs: optional attributes to be set.
          :return: object of the sub-class of the CustomLayerDescriptor class or None if the match kind is not registered.
docstring_tokens: Fabric method to create proper object based on match_kind . : param match_kind : match kind . : param replacement_id : id of the replacement . : param attrs : optional attributes to be set . : return : object of the sub - class of the CustomLayerDescriptor class or None if the match kind is not registered .
function: def create_instance(cls, match_kind: str, replacement_id: str, attrs: dict = None):
          """
          Fabric method to create proper object based on match_kind.
          :param match_kind: match kind.
          :param replacement_id: id of the replacement.
          :param attrs: optional attributes to be set.
          :return: object of the sub-class of the CustomLayerDescriptor class or None if the match kind is not registered.
          """
          if attrs is None:
              attrs = dict()
          if match_kind in cls.registered_types:
              return cls.registered_types[match_kind](replacement_id, attrs)
          else:
              raise Error('No class registered for match kind "{}". Supported match kinds are "{}". '.format(
                  match_kind, list(cls.registered_types.keys())) +
                          refer_to_faq_msg(65))
function_tokens: def create_instance ( cls , match_kind : str , replacement_id : str , attrs : dict = None ) : if attrs is None : attrs = dict ( ) if match_kind in cls . registered_types : return cls . registered_types [ match_kind ] ( replacement_id , attrs ) else : raise Error ( 'No class registered for match kind "{}". Supported match kinds are "{}". ' . format ( match_kind , list ( cls . registered_types . keys ( ) ) ) + refer_to_faq_msg ( 65 ) )