def is_integer(obj):
    """Test if input object is an integer.

    > *Input arguments*

    * `obj`: Input variable.

    > *Returns*

    `True`, if `obj` is a integer.
    """
    import numpy as np
    return isinstance(obj, int) or isinstance(obj, np.int64)
