class_docstr: A prompt template.
class_docstr_tok: ["A","prompt","template","."]
code: def _escape_pipe(cls, example):
      # Replaces any occurrences of the "|||" separator in the example, which
      # which will be replaced back after splitting
      protected_example = {
          key: value.replace("|||", cls.pipe_protector)
          if isinstance(value, str)
          else value
          for key, value in example.items()
      }
      return protected_example
  
imports: import logging
  import os
  import random
  import re
  import uuid
  from collections import Counter, defaultdict
  from shutil import rmtree
  from typing import Dict, List, Optional, Tuple
  import pandas
  import pkg_resources
  import yaml
  from jinja2 import BaseLoader, Environment, meta
  from ..constants import AUTOMM
label_desc: Use image node_id 10 for calling the Template obj's underlying member method code with example usage: obj._escape_pipe(cls, example) and returns: protected_example