code: def get_local_config_filepath(
          config_filepath,
          force_local=False,
  ):
      
      local_config_name = path.basename(config_filepath).split('.')[0] + '_local.cfg'
      local_config_filepath = path.join(path.split(config_filepath)[0], local_config_name)
  
      real_config_filepath = ''
      if path.isfile(local_config_filepath) or force_local:
          #if _local.cfg version exists, use it instead
          real_config_filepath = local_config_filepath
      else:
          #else use tracked default
          real_config_filepath = config_filepath
  
      return real_config_filepath
docs: helper for finding local filepath for config
  
      Args:
          config_filepath (str): path to local config abspath > relpath
          force_local (bool): force return of _local.cfg version
  
      Returns:
          str: Path to local config, or global if path DNE