input: 
  from typing import Union
  
  
  def is_armstrong_number(num: Union[int, float]) -> bool:
      """ Check if a given number is an Armstrong number.
      An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits.
      >>> is_armstrong_number(153)
      True
      >>> is_armstrong_number(9474)
      True
      >>> is_armstrong_number(123)
      False
      """
      num = int(num)
      order = len(str(num))
      sum = 0
      temp = num
      while temp > 0:
          digit = temp % 10
          sum += digit ** order
          temp //= 10
      return num == sum
  
output:     num = int(num)
      order = len(str(num))
      sum = 0
      temp = num
      while temp > 0:
          digit = temp % 10
          sum += digit ** order
          temp //= 10
      return num == sum