def _get_length(*args):
    """Helper to establish length of arguments."""
    length = 0
    for a in args:
      if a:
        length = len(a)
    return length
Helper to establish length of arguments.
language/capwap/utils/image_utils.py