<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def expose_endpoints (module, *args):
 """ Expose methods to the given module for each API endpoint """

    
    for op in args:
        # Capture the closure state
        def create_method (o):
            return lambda exp: send_request(o, exp)
        
        setattr(sys.modules[__name__], op, create_method(op))
        setattr(module, op, getattr(sys.modules[__name__], op))