class_docstr: Reference: https://d-uuwbxj1u4cnu.studio.us-west-2.sagemaker.aws/jupyter/default/lab/workspaces/auto-q/tree/DemoNotebooks/meta-textgeneration-llama-2-7b-SDK_1.ipynb
class_docstr_tok: ["Reference",":","https",":","\/\/d-uuwbxj1u4cnu.studio.us-west-2.sagemaker.aws\/jupyter\/default\/lab\/workspaces\/auto-q\/tree\/DemoNotebooks\/meta-textgeneration-llama-2-7b-SDK_1.ipynb"]
code: def __init__(
      self,
      max_new_tokens: Optional[int] = None,
      top_p: Optional[float] = None,
      temperature: Optional[float] = None,
      return_full_text: Optional[bool] = None,
  ) -> None:
      locals_ = locals()
      for key, value in locals_.items():
          if key != "self" and value is not None:
              setattr(self.__class__, key, value)
  
imports: import os, types
  from enum import Enum
  import json
  import requests
  import time
  from typing import Callable, Optional, Any
  import litellm
  from litellm.utils import ModelResponse, EmbeddingResponse, get_secret, Usage
  import sys
  from copy import deepcopy
  import httpx
  from .prompt_templates.factory import prompt_factory, custom_prompt
label_desc: Use image node_id 1 to create a new SagemakerConfig object  with example: obj = SagemakerConfig(max_new_tokens, top_p, temperature, return_full_text)