code: protected function alterTimeoutCallValue(array $options)
      {
          $timeoutValue = null;
          if ($this->isInitialCall === true) {
              if ($this->hasOption(self::OPTION_INITIAL_CALL_TIMEOUT)) {
                  $timeoutValue = $this->getOption(self::OPTION_INITIAL_CALL_TIMEOUT);
              }
          } else {
              if ($this->hasOption(self::OPTION_NEXT_ITEM_CALL_TIMEOUT)) {
                  $timeoutValue = $this->getOption(self::OPTION_NEXT_ITEM_CALL_TIMEOUT);
              }
          }
  
          if (!is_null($timeoutValue)) {
              $options[self::OPTION_ENGINE_CLIENT]['options']['http_client_options']['timeout'] = $timeoutValue;
          }
          
          return $options;
      }
docs: Alter the timeout value for engine params
  
  Get the timeout value from options following if it is for initial or nextItem call
  If it's not specified in the config, do not alter the $options
  
  @param array $options
  @return array