code: def _or_join(self, terms):
          
          from six import text_type
  
          if isinstance(terms, (tuple, list)):
              if len(terms) > 1:
                  return ' | '.join(text_type(t) for t in terms)
              else:
                  return terms[0]
          else:
              return terms
docs: Joins terms using OR operator.
  
          Args:
              terms (list): terms to join
  
          Examples:
              self._or_join(['term1', 'term2']) -> 'term1 | term2'
  
          Returns:
              str