code: def replace_suffix(name, new_suffix):
      """Replaces the suffix of name by new_suffix.
      If no suffix exists, the new one is added.
      """
      assert isinstance(name, basestring)
      assert isinstance(new_suffix, basestring)
      split = os.path.splitext(name)
      return split[0] + new_suffix
  
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 8 for calling a global function with example usage: replace_suffix(name, new_suffix) and returns: unknown