code: function savePrettyGraphSONSync(graph, filename) {
          // Build the GraphSON in memory in Java.
          var ByteArrayOutputStream = Tinkerpop.autoImport('ByteArrayOutputStream');
          var stream = new ByteArrayOutputStream();
          var builder = Tinkerpop.GraphSONWriter.build();
          var mapper = _newGraphSONMapperSync();
          builder.mapper(mapper);
          var writer = builder.create();
          writer.writeGraph(stream, graph);
          // Beautify the JSON.
          var uglyString = stream.toString();
          var prettyString = _prettyGraphSONString(uglyString);
          // Write to the file.
          fs.writeFileSync(filename, prettyString);
          return graph;
      }
docs: ### `savePrettyGraphSONSync(graph: Java.Graph, filename: string)` Saves the graph as human-readable, deterministic GraphSON, and returns the graph (for fluent API).