code: def from_dict(cls, json_object):
          
          config = OpenAIGPTConfig(vocab_size_or_config_json_file=-1)
          for key, value in json_object.items():
              config.__dict__[key] = value
          return config
docs: Constructs a `OpenAIGPTConfig` from a Python dictionary of parameters.