code: def get_size(vm_):
      '''
      Return the VM's size object
      '''
      vm_size = config.get_cloud_config_value('size', vm_, __opts__)
      sizes = avail_sizes()
  
      if not vm_size:
          return sizes['Small Instance']
  
      for size in sizes:
          combinations = (six.text_type(sizes[size]['id']), six.text_type(size))
          if vm_size and six.text_type(vm_size) in combinations:
              return sizes[size]
      raise SaltCloudNotFound(
          'The specified size, \'{0}\', could not be found.'.format(vm_size)
      f get_size(vm_):
      '''
      Return the VM's size object
      '''
      vm_size = config.get_cloud_config_value('size', vm_, __opts__)
      sizes = avail_sizes()
  
      if not vm_size:
          return sizes['Small Instance']
  
      for size in sizes:
          combinations = (six.text_type(sizes[size]['id']), six.text_type(size))
          if vm_size and six.text_type(vm_size) in combinations:
              return sizes[size]
      raise SaltCloudNotFound(
          'The specified size, \'{0}\', could not be found.'.format(vm_size)
      )
docs: Return the VM's size object