code: def avail_sizes(call=None):
      '''
      Return available Packet sizes.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud --list-sizes packet-provider
          salt-cloud -f avail_sizes packet-provider
      '''
      if call == 'action':
          raise SaltCloudException(
              'The avail_locations function must be called with -f or --function.'
          )
  
      vm_ = get_configured_provider()
  
      manager = packet.Manager(auth_token=vm_['token'])
  
      ret = {}
  
      for plan in manager.list_plans():
          ret[plan.name] = plan.__dict__
  
      return ref avail_sizes(call=None):
      '''
      Return available Packet sizes.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud --list-sizes packet-provider
          salt-cloud -f avail_sizes packet-provider
      '''
      if call == 'action':
          raise SaltCloudException(
              'The avail_locations function must be called with -f or --function.'
          )
  
      vm_ = get_configured_provider()
  
      manager = packet.Manager(auth_token=vm_['token'])
  
      ret = {}
  
      for plan in manager.list_plans():
          ret[plan.name] = plan.__dict__
  
      return ret
docs: Return available Packet sizes.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud --list-sizes packet-provider
          salt-cloud -f avail_sizes packet-provider