class_docstr: Create the registry that will map name to object.
  This facilitates the users to create custom registry.
class_docstr_tok: ["Create","the","registry","that","will","map","name","to","object",".","This","facilitates","the","users","to","create","custom","registry","."]
docstr: Parameters
  ----------
  name
  json_str
  Returns
  -------
docstr_tok: ["Parameters","--","--","--","--","--","name","json_str","Returns","--","--","--","-"]
code: def create_with_json(self, name: str, json_str: str):
      """
      Parameters
      ----------
      name
      json_str
      Returns
      -------
      """
      try:
          args = json.loads(json_str)
      except JSONDecodeError:
          raise ValueError(
              'Unable to decode the json string: json_str="{}"'.format(
                  json_str
              )
          )
      if isinstance(args, (list, tuple)):
          return self.create(name, *args)
      elif isinstance(args, dict):
          return self.create(name, **args)
      else:
          raise NotImplementedError(
              "The format of json string is not supported! We only support "
              'list/dict. json_str="{}".'.format(json_str)
          )
  
file_path: autogluon/multimodal/src/autogluon/multimodal/registry.py
imports: import json
  from collections import OrderedDict
  from json import JSONDecodeError
  from typing import List
  from typing import OrderedDict
label_desc: Use image node_id 9 for calling the Registry obj's underlying member method code with example usage: obj.create_with_json(name, json_str) and returns: self, self