def GetNameForCustom(custom_cpu, custom_memory_mib):
  """Creates a custom machine type name from the desired CPU and memory specs.

  Args:
    custom_cpu: the number of cpu desired for the custom machine type
    custom_memory_mib: the amount of ram desired in MiB for the custom machine
      type instance

  Returns:
    The custom machine type name for the 'instance create' call
  """
  return 'custom-{0}-{1}'.format(custom_cpu, custom_memory_mib)