code: def __output_path(toolchain, rule, output_dir):
      
      filename = '%s_%s.json' % (toolchain, rule)
      return os.path.join(output_dir, filename)
docs: Gets the output path for a file given the toolchain, rule and output_dir