code: def find_all_segment(text: str, custom_dict: Trie = None) -> List[str]:
      
      if not text or not isinstance(text, str):
          return []
  
      ww = list(_multicut(text, custom_dict=custom_dict))
  
      return list(_combine(ww))
docs: Get all possible segment variations
  
      :param str text: input string to be tokenized
      :return: returns list of segment variations