code: def create_clustered_training_data(self, ratio: float = 0.25):
      return self.tups2pdf(
          self.edges_between(
              self.hr_users, self.join_resources, 1.0, True
          )
          + self.edges_between(
              self.fin_users, self.join_resources, 1.0, True
          )
          + self.edges_between(
              self.eng_users, self.join_resources, 1.0, True
          )
          + self.edges_between(
              self.hr_users, self.hr_resources, ratio, True
          )
          + self.edges_between(
              self.fin_users, self.fin_resources, ratio, True
          )
          + self.edges_between(
              self.eng_users, self.eng_resources, ratio, True
          ),
      )
  
file_path: SynapseML/core/src/main/python/synapse/ml/cyber/dataset.py
imports: from typing import List, Set, Optional, Tuple
  import pandas
  import random
  from synapse.ml.cyber.anomaly.collaborative_filtering import AccessAnomalyConfig
label_desc: Use image node_id 5 for calling the DataFactory obj's underlying member method code with example usage: obj.create_clustered_training_data(ratio) and returns: self