code: def nodes_to_replicas(
      n_cores_per_node, n_nodes=3, cpu_cores_per_replica=0.1
  ):
      """Provide a rough estimate of the number of replicas supported by a
      given number of nodes with n_cores_per_node cores each
  
      Args:
          n_cores_per_node (int): Total number of cores per node within an AKS
              cluster that you want to use
          n_nodes (int): Number of nodes (i.e. VMs) used in the AKS cluster
          cpu_cores_per_replica (float): Cores assigned to each replica. This
              can be fractional and corresponds to the
              cpu_cores argument passed to AksWebservice.deploy_configuration()
  
      Returns:
          int: Total number of replicas supported by the configuration
      """
      n_cores_avail = (n_cores_per_node - 0.5) * n_nodes - 4.45
      replicas = floor(n_cores_avail / cpu_cores_per_replica)
      logger.info(
          "Approximately {} replicas are supported by {} nodes with {} cores each.".format(
              replicas, n_nodes, n_cores_per_node
          )
      )
      return replicas
  
imports: from math import ceil, floor
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: nodes_to_replicas(n_cores_per_node, n_nodes, cpu_cores_per_replica) and returns: replicas