code: def Distance(*args, **kwargs):
      total = 0.0
      last = None
  
      if len(args) == 1 and isinstance(args, (list, tuple)):
          args = args[0]
  
      if len(args) <= 1:
          raise ValueError("Distance needs at least two locations")
  
      for location in args:
          if last:
              distance = haversine(
                  Location(last), Location(location), **kwargs
              )
              if distance:
                  total += distance
          last = location
  
      return total
  
imports: from __future__ import absolute_import
  from math import radians, cos, sin, asin, sqrt
  from geocoder.location import Location
label_desc: Use image node_id 1 for calling a global function with example usage: Distance() and returns: total