docs: def _create_lua_method(self, name, code):
          """
          Registers the code snippet as a Lua script, and binds the
          script to the client as a method that can be called with
          the same signature as regular client methods, eg with a
          single key arg.
          """
          script = self.register_script(code)
          setattr(script, "name", name)  # Helps debugging redis lib.
          method = lambda key, *a, **k: script(keys=[key], args=a, **k)
          setattr(self, name, method)