def isPhysicalQuantity(x):
  return isinstance(x, PhysicalQuantity)


# Helper functions
Returns 1 if `x` is an instance of PhysicalQuantity.
dataset/ETHPy150Open kdart/pycopia/core/pycopia/physics/physical_quantities.py/isPhysicalQuantity