docstr: Uses the given ``kwargs`` to create a post-rule of the given name
docstr_tok: ["Uses","the","given","``","kwargs","``","to","create","a","post-rule","of","the","given","name"]
code: def create(cls, name: str, **kwargs) -> PostRuleBase:
      """
      Uses the given ``kwargs`` to create a post-rule of the given name
      """
      post_rule_class = cls.get_post_rule_class(name)
      return post_rule_class.from_dict(kwargs)
  
imports: from typing import Type
  from merlion.post_process.base import PostRuleBase
  from merlion.utils import dynamic_import
label_desc: Use image node_id 2 for calling the PostRuleFactory obj's underlying member method code with example usage: obj.create(cls, name) and returns: post_rule_class