class_docstr: Utility class for quick manipulation of a connector pipeline.
class_docstr_tok: ["Utility","class","for","quick","manipulation","of","a","connector","pipeline","."]
docstr: Insert a new connector before connector <name>
  
  Args:
      name: name of the connector before which a new connector
          will get inserted.
      connector: a new connector to be inserted.
docstr_tok: ["Insert","a","new","connector","before","connector","<","name",">","Args",":","name",":","name","of","the","connector","before","which","a","new","connector","will","get","inserted",".","connector",":","a","new","connector","to","be","inserted","."]
code: def insert_before(self, name: str, connector: Connector):
      """Insert a new connector before connector <name>
  
      Args:
          name: name of the connector before which a new connector
              will get inserted.
          connector: a new connector to be inserted.
      """
      idx = -1
      for idx, c in enumerate(self.connectors):
          if c.__class__.__name__ == name:
              break
      if idx < 0:
          raise ValueError(f"Can not find connector {name}")
      self.connectors.insert(idx, connector)
  
      logger.info(
          f"Inserted {connector.__class__.__name__} before {name} "
          f"to {self.__class__.__name__}."
      )
  
imports: import abc
  import logging
  from typing import TYPE_CHECKING, Any, Dict, List, Tuple, Union
  import gymnasium
  from ray.rllib.policy.view_requirement import ViewRequirement
  from ray.rllib.utils.typing import ActionConnectorDataType, AgentConnectorDataType, AlgorithmConfigDict, TensorType
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 5 for calling the ConnectorPipeline obj's underlying member method code with example usage: obj.insert_before(name, connector) without return types