Python required variable style
<p>What is the best style for a Python method that requires the keyword argument 'required_arg':</p>

<pre><code>def test_method(required_arg, *args, **kwargs):


def test_method(*args, **kwargs):
    required_arg = kwargs.pop('required_arg')
    if kwargs:
        raise ValueError('Unexpected keyword arguments: %s' % kwargs)
</code></pre>

<p>Or something else?  I want to use this for all my methods in the future so I'm kind of looking for the best practices way to deal with required keyword arguments in Python methods.</p>
