code: def halton(base):
      """Returns an iterator over an infinite Halton sequence"""
  
      def value(index):
          result = 0.0
          f = 1.0 / base
          i = index
          while i > 0:
              result += f * (i % base)
              i = i // base
              f = f / base
          return result
  
      i = 1
      while i > 0:
          yield value(i)
          i += 1
  
file_path: shapely/shapely/tests/legacy/test_union.py
imports: import random
  import unittest
  from functools import partial
  from itertools import islice
  import pytest
  from shapely.errors import ShapelyDeprecationWarning
  from shapely.geometry import MultiPolygon, Point
  from shapely.ops import cascaded_union, unary_union
label_desc: Use image node_id 1 for calling a global function with example usage: halton(base) and returns: result