code: protected function getGuzzle(array $config)
      {
          $options = [];
  
          if (isset($config['proxy']) && $config['proxy']) {
              if (isset($config['proxy']['http']) && php_sapi_name() != 'cli') {
                  unset($config['proxy']['http']);
              }
  
              $options['proxy'] = $config['proxy'];
          }
  
          return Client::makeGuzzle(isset($config['endpoint']) ? $config['endpoint'] : null, $options);
      }
docs: Get the guzzle client instance.
  
  @param array $config
  
  @return \GuzzleHttp\ClientInterface