code: def create_partition_selection_strategy(
      strategy: pipeline_dp.PartitionSelectionStrategy,
      epsilon: float,
      delta: float,
      max_partitions_contributed: int,
      pre_threshold: Optional[int] = None,
  ) -> "PartitionSelectionStrategy":
      """Creates PyDP partition selection object."""
      strategy_name = PARTITION_STRATEGY_ENUM_TO_STR[strategy]
  
      if pre_threshold is None:
          return partition_selection.create_partition_strategy(
              strategy_name, epsilon, delta, max_partitions_contributed
          )
      else:
          return partition_selection.create_partition_strategy(
              strategy_name,
              epsilon,
              delta,
              max_partitions_contributed,
              pre_threshold,
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: create_partition_selection_strategy(strategy, epsilon, delta, max_partitions_contributed, pre_threshold) and returns: partition_selection, partition_selection