code: def with_max_new_tokens_being(
      self, max_new_tokens: int
  ) -> "GenerationConfig":
      return GenerationConfig(
          max_new_tokens, self.top_p, self.temperature
      )
  
imports: from dataclasses import dataclass, field
  from enum import Enum
  from typing import Callable, Literal
  import torch
  from transformers import AutoModelForCausalLM, AutoTokenizer
  from transformers import GenerationConfig
  from transformers import PreTrainedModel, PreTrainedTokenizer
label_desc: Use image node_id 2 for calling the GenerationConfig obj's underlying member method code with example usage: obj.with_max_new_tokens_being(max_new_tokens) and returns: GenerationConfig