code: def get_grist(value):
      """Returns the grist of a string.
      If value is a sequence, does it for every value and returns the result as a sequence.
      """
      assert is_iterable_typed(value, basestring) or isinstance(
          value, basestring
      )
  
      def get_grist_one(name):
          split = __re_grist_and_value.match(name)
          if not split:
              return ""
          else:
              return split.group(1)
  
      if isinstance(value, str):
          return get_grist_one(value)
      else:
          return [get_grist_one(v) for v in value]
  
file_path: turicreate/src/external/boost/boost_1_68_0/tools/build/src/util/utility.py
imports: import re
  import os
  import bjam
  from b2.exceptions import *
  from b2.util import is_iterable_typed
label_desc: Use image node_id 6 for calling a global function with example usage: get_grist(value) and returns: get_grist_one, unknown, str, split