class_docstr: Reads a composable pipeline's info from its proto representation.
class_docstr_tok: ["Reads","a","composable","pipeline","'s","info","from","its","proto","representation","."]
code: def _strip_begin_node_suffix(self, s: str) -> str:
      if not s.endswith(compiler_constants.PIPELINE_BEGIN_NODE_SUFFIX):
          raise ValueError(
              "Got malformed composable pipeline proto."
              "Expecting the first node in composable pipeline to be a "
              "PipelineBegin node."
          )
      return s[: -len(compiler_constants.PIPELINE_BEGIN_NODE_SUFFIX)]
  
imports: import abc
  from typing import Sequence, Union
  from tfx.dsl.compiler import constants
  from tfx.proto.orchestration import pipeline_pb2
  from google.protobuf import message
label_desc: Use image node_id 2 for calling the ComposablePipelineProtoView obj's underlying member method code with example usage: obj._strip_begin_node_suffix(s) and returns: s