code: def to_json(self):
      return json.dumps(self.to_dict(), indent=4)
  
imports: import torch
  from fate.components.components.nn.loader import Loader
  from torch.nn import Sequential
  import json
label_desc: Use image node_id 2 for calling the Sequential obj's underlying member method code with example usage: obj.to_json() and returns: json