def parse_version(*args):
    v = None
    if len(args) == 1:
        a = args[0]
        if isinstance(a, tuple):
            v = '.'.join(str(x) for x in a)
        else:
            v = str(a)
    else:
        v = '.'.join(str(a) for a in args)

    if v.startswith('v'):
        v = v[1:]

    try:
        return pkg_resources.SetuptoolsVersion(v)
    except AttributeError:
        return pkg_resources.parse_version(v)

### Import the other utility functions
Initialize a discrete time network Hawkes model with K processes.
dataset/ETHPy150Open NVIDIA/DIGITS/digits/utils/__init__.py/parse_version--crossover with--dataset/ETHPy150Open slinderman/pyhawkes/pyhawkes/models.py/DiscreteTimeStandardHawkesModel.__init__