code: func (as *availabilitySet) GetInstanceTypeByNodeName(name string) (string, error) {
  	machine, err := as.getVirtualMachine(types.NodeName(name))
  	if err != nil {
  		klog.Errorf("as.GetInstanceTypeByNodeName(%s) failed: as.getVirtualMachine(%s) err=%v", name, name, err)
  		return "", err
  	}
  
  	return string(machine.HardwareProfile.VMSize), nil
  }
docs: // GetInstanceTypeByNodeName gets the instance type by node name.