code: def generate_signal(
      snapshot_count, node_count, feature_count, graph_count
  ):
      edge_indices = []
      edge_weights = []
      features = []
      targets = []
      batches = []
      for _ in range(snapshot_count):
          node_start = 0
          edge_indices_s = []
          edge_weights_s = []
          features_s = []
          targets_s = []
          batches_s = []
          for i in range(graph_count):
              edge_indices_s.append(
                  get_edge_array(node_count, node_start)
              )
              edge_weights_s.append(
                  (np.ones(edge_indices_s[-1].shape[0]))
              )
              features_s.append(
                  np.random.uniform(0, 1, (node_count, feature_count))
              )
              targets_s.append(
                  np.array(
                      [
                          np.random.choice([0, 1])
                          for _ in range(node_count)
                      ]
                  )
              )
              batches_s.append(np.array([i for _ in range(node_count)]))
              node_start = node_start + node_count
          edge_indices.append(np.concatenate(edge_indices_s).T)
          edge_weights.append(np.concatenate(edge_weights_s))
          features.append(np.concatenate(features_s))
          targets.append(np.concatenate(targets_s))
          batches.append(np.concatenate(batches_s))
      return edge_indices, edge_weights, features, targets, batches
  
imports: import numpy
  import networkx
  from torch_geometric_temporal.signal import temporal_signal_split
  from torch_geometric_temporal.signal import StaticGraphTemporalSignalBatch
  from torch_geometric_temporal.signal import DynamicGraphTemporalSignalBatch
  from torch_geometric_temporal.signal import DynamicGraphStaticSignalBatch
  from torch_geometric_temporal.signal import StaticHeteroGraphTemporalSignalBatch
  from torch_geometric_temporal.signal import DynamicHeteroGraphTemporalSignalBatch
  from torch_geometric_temporal.signal import DynamicHeteroGraphStaticSignalBatch
label_desc: Use image node_id 2 for calling a global function with example usage: generate_signal(snapshot_count, node_count, feature_count, graph_count) and returns: edge_indices,  edge_weights,  features,  targets,  batches