<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_recorder(import_path, ctxt):
 """ Gets a recorder for a particular target given a particular context :param str import_path: The import path of the method to record :param caliendo.hooks.Context ctxt: The context to record :rtype: function :returns: A method that acts like the target, but adds a hook for each call. """

    getter, attribute = _get_target(import_path)
    method_to_patch = getattr(getter(), attribute)
    def recorder(*args, **kwargs):
        ctxt.stack.add_hook(Hook(call_descriptor_hash=util.get_current_hash(),
                                 callback=lambda cd: method_to_patch(*args, **kwargs)))
        ctxt.stack.skip_once(util.get_current_hash())
        return method_to_patch(*args, **kwargs)
    return recorder