class_docstr: Used to store phases of a traffic pattern to perform endpoint load testing.
  
  Required for an Advanced Inference Recommendations Job
class_docstr_tok: ["Used","to","store","phases","of","a","traffic","pattern","to","perform","endpoint","load","testing",".","Required","for","an","Advanced","Inference","Recommendations","Job"]
docstr: Initialize a `Phase`
docstr_tok: ["Initialize","a","`","Phase","`"]
code: def __init__(
      self,
      duration_in_seconds: int,
      initial_number_of_users: int,
      spawn_rate: int,
  ):
      """Initialize a `Phase`"""
      self.to_json = {
          "DurationInSeconds": duration_in_seconds,
          "InitialNumberOfUsers": initial_number_of_users,
          "SpawnRate": spawn_rate,
      }
  
imports: from __future__ import absolute_import
  import logging
  import re
  from typing import List, Dict, Optional
  import sagemaker
  from sagemaker.parameter import CategoricalParameter
label_desc: Use image node_id 1 to create a new Phase object  with example: obj = Phase(duration_in_seconds, initial_number_of_users, spawn_rate)