def make_track_function(request):
 import track.views
 def function(event_type, event):
  return track.views.server_track(request, event_type, event, page='x_module')
 return function

def make_track_function ( request ) : import track . views def function ( event_type , event ) : return track . views . server_track ( request , event_type , event , page = 'x_module' ) return function
make a tracking function that logs what happened .