def METHOD_NAME(path, js_source):
  """Get a deps.js file string for a source."""
  provides = _ToJsSrc(sorted(js_source.provides))
  requires = _ToJsSrc(sorted(js_source.requires))
  module = "{'module': 'goog'}" if js_source.is_goog_module else '{}'
  return 'goog.addDependency(\'%s\', %s, %s, %s);\n' % (
      path, provides, requires, module)