def is_int(some_str):
    """Return True, if the given string represents an integer value."""
    try:
        int(some_str)
        return True
    except ValueError:
        return False
Return True, if the given string represents an integer value.
photogrammetry_importer/utility/type_utility.py