code: func (ss *scaleSet) GetInstanceTypeByNodeName(name string) (string, error) {
  	managedByAS, err := ss.isNodeManagedByAvailabilitySet(name)
  	if err != nil {
  		klog.Errorf("Failed to check isNodeManagedByAvailabilitySet: %v", err)
  		return "", err
  	}
  	if managedByAS {
  		// vm is managed by availability set.
  		return ss.availabilitySet.GetInstanceTypeByNodeName(name)
  	}
  
  	_, _, vm, err := ss.getVmssVM(name)
  	if err != nil {
  		return "", err
  	}
  
  	if vm.Sku != nil && vm.Sku.Name != nil {
  		return *vm.Sku.Name, nil
  	}
  
  	return "", nil
  }
docs: // GetInstanceTypeByNodeName gets the instance type by node name.