docs: def python_dependencies(context: Context, extras=None):
      """
      Updates python dependencies
      """
      with mock.patch('setuptools.setup'):
          from setup import install_requires, extras_require
  
          requirements = install_requires.copy()
          if extras:
              requirements.extend(extras_require[extras])
      return context.pip_command('install', *requirements)