class_docstr: This class subclasses redis-py's `Redis` and implements RedisTimeSeries's
  commands (prefixed with "ts").
  The client allows to interact with RedisTimeSeries and use all of it's
  functionality.
docstr: Creates a pipeline for the TimeSeries module, that can be used
  for executing only TimeSeries commands and core commands.
  
  Usage example:
  
  r = redis.Redis()
  pipe = r.ts().pipeline()
  for i in range(100):
      pipeline.add("with_pipeline", i, 1.1 * i)
  pipeline.execute()
docstr_tok: ["Creates","a","pipeline","for","the","TimeSeries","module",",","that","can","be","used","for","executing","only","TimeSeries","commands","and","core","commands",".","Usage","example",":","r","=","redis.Redis","(",")","pipe","=","r.ts","(",")",".pipeline","(",")","for","i","in","range","(","100",")",":","pipeline.add","(","``","with_pipeline","''",",","i",",","1.1","*","i",")","pipeline.execute","(",")"]
code: def pipeline(self, transaction=True, shard_hint=None):
      """Creates a pipeline for the TimeSeries module, that can be used
      for executing only TimeSeries commands and core commands.
  
      Usage example:
  
      r = redis.Redis()
      pipe = r.ts().pipeline()
      for i in range(100):
          pipeline.add("with_pipeline", i, 1.1 * i)
      pipeline.execute()
  
      """
      if isinstance(self.client, redis.RedisCluster):
          p = ClusterPipeline(
              nodes_manager=self.client.nodes_manager,
              commands_parser=self.client.commands_parser,
              startup_nodes=self.client.nodes_manager.startup_nodes,
              result_callbacks=self.client.result_callbacks,
              cluster_response_callbacks=self.client.cluster_response_callbacks,
              cluster_error_retry_attempts=self.client.cluster_error_retry_attempts,
              read_from_replicas=self.client.read_from_replicas,
              reinitialize_steps=self.client.reinitialize_steps,
              lock=self.client._lock,
          )
  
      else:
          p = Pipeline(
              connection_pool=self.client.connection_pool,
              response_callbacks=self._MODULE_CALLBACKS,
              transaction=transaction,
              shard_hint=shard_hint,
          )
      return p
  
file_path: catboost/contrib/python/redis/py3/redis/commands/timeseries/__init__.py
imports: import redis
  from redis._parsers.helpers import bool_ok
  from ..helpers import get_protocol_version, parse_to_list
  from .commands import ALTER_CMD, CREATE_CMD, CREATERULE_CMD, DEL_CMD, DELETERULE_CMD, GET_CMD, INFO_CMD, MGET_CMD, MRANGE_CMD, MREVRANGE_CMD, QUERYINDEX_CMD, RANGE_CMD, REVRANGE_CMD, TimeSeriesCommands
  from .info import TSInfo
  from .utils import parse_get, parse_m_get, parse_m_range, parse_range
label_desc: Use image node_id 2 for calling the TimeSeries obj's underlying member method code with example usage: obj.pipeline(transaction, shard_hint) and returns: p