def METHOD_NAME(self, input_dir):
    if input_dir:
        model_args_file = os.path.join(input_dir, "model_args.json")
        if os.path.isfile(model_args_file):
            with open(model_args_file, "r") as f:
                model_args = json.METHOD_NAME(f)
            self.update_from_dict(model_args)