class_docstr: Utility to handle PastSeq Param
docstr: get_past_seq_config(look_back)
  Generate pass sequence config based on look_back.
  
  :param look_back: look_back configuration
  :return: search configuration for past sequence
docstr_tok: ["get_past_seq_config","(","look_back",")","Generate","pass","sequence","config","based","on","look_back",".",":","param","look_back",":","look_back","configuration",":","return",":","search","configuration","for","past","sequence"]
code: def get_past_seq_config(look_back):
      """
      get_past_seq_config(look_back)
      Generate pass sequence config based on look_back.
  
      :param look_back: look_back configuration
      :return: search configuration for past sequence
      """
      if (
          isinstance(look_back, tuple)
          and len(look_back) == 2
          and isinstance(look_back[0], int)
          and isinstance(look_back[1], int)
      ):
          if look_back[1] < 2:
              raise ValueError(
                  "The max look back value should be at least 2"
              )
          if look_back[0] < 2:
              print(
                  "The input min look back value is smaller than 2. "
                  "We sample from range (2, {}) instead.".format(
                      look_back[1]
                  )
              )
          past_seq_config = hp.randint(look_back[0], look_back[1] + 1)
      elif isinstance(look_back, int):
          if look_back < 2:
              raise ValueError(
                  "look back value should not be smaller than 2. "
                  "Current value is ",
                  look_back,
              )
          past_seq_config = look_back
      else:
          raise ValueError(
              "look back is {}.\n "
              "look_back should be either a tuple with 2 int values:"
              " (min_len, max_len) or a single int".format(look_back)
          )
      return past_seq_config
  
imports: from zoo.chronos.autots.deprecated.config.base import Recipe
  from zoo.orca.automl import hp
  from zoo.chronos.utils import deprecated
label_desc: Use image node_id 2 for calling the PastSeqParamHandler obj's underlying member method code with example usage: obj.get_past_seq_config(look_back) and returns: past_seq_config