code: def get_number_of_partitions(n):
      """Calculates number of partitions for Bucket Partitioner.
  
      Parameters
      ----------
      n: int
           Number of buckets with vertices.
  
      Returns
      -------
      n_partitions: int
           Number of partitions.
      """
      return int(n * (n + 1) / 2)
  
imports: import logging
  import os
  import shelve
  import tempfile
  from abc import ABC
  from datetime import datetime
  import numpy
  from ampligraph.utils.profiling import timing_and_memory
  from .graph_data_loader import GraphDataLoader
label_desc: Use image node_id 2 for calling a global function with example usage: get_number_of_partitions(n) and returns: int