Understand Python Function
<p>I'm learning Python and wanted to see if anyone could help break down and understand what this function does step by step?</p>

<pre><code>def label(self, index, *args): 
    """ 
    Label each axes one at a time 
    args are of the form &lt;label 1&gt;,...,&lt;label n&gt; 
    APIPARAM: chxl 
    """ 
    self.data['labels'].append( 
    str('%s:|%s'%(index, '|'.join(map(str,args)) )).replace('None','') 
    ) 
    return self.parent 
</code></pre>
