def install_extras(<EOL>include=ALL_EXTRAS,<EOL>*,<EOL>exclude=EMPTY_SET,<EOL>raise_on_error=False,<EOL>warn_on_error=True<EOL>):
<EOL>de = set(include)<EOL>de = set(exclude)<EOL>sting_extras = (include | exclude) - ALL_EXTRAS<EOL>existing_extras:<EOL>aise ValueError(<EOL>"<STR_LIT>".format(<EOL>'<STR_LIT:U+002CU+0020>'.join(unexisting_extras)<EOL>)<EOL>s_to_install = (ALL_EXTRAS & include) - exclude<EOL>xtra in extras_to_install:<EOL>odule_name = '<STR_LIT>' + extra<EOL>ry:<EOL>extra_module = import_module(module_name)<EOL>xcept ImportError as e:<EOL>if raise_on_error:<EOL>raise e<EOL>if warn_on_error:<EOL>warnings.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(extra)<EOL>)<EOL>lse:<EOL>try:<EOL>extra_module.install()<EOL>except Exception as exc:<EOL>if raise_on_error:<EOL>raise exc<EOL>elif warn_on_error:<EOL>warnings.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(extra)<EOL>)<EOL>
Installs extras.

    Installing an extra means registering pretty printers for objects from third
    party libraries and/or enabling integrations with other python programs.

    - ``'attrs'`` - automatically pretty prints classes created using the ``attrs`` package.
    - ``'dataclasses'`` - automatically pretty prints classes created using the ``dataclasses``
      module.
    - ``'django'`` - automatically pretty prints Model and QuerySet subclasses defined in your
        Django apps.
    - ``numpy`` - automatically pretty prints numpy scalars with explicit types, and,
      for numpy>=1.14, numpy arrays.
    - ``'requests'`` - automatically pretty prints Requests, Responses, Sessions, etc.
    - ``'ipython'`` - makes prettyprinter the default printer in the IPython shell.
    - ``'python'`` - makes prettyprinter the default printer in the default Python shell.
    - ``'ipython_repr_pretty'`` - automatically prints objects that define a ``_repr_pretty_``
      method to integrate with `IPython.lib.pretty
      <http://ipython.readthedocs.io/en/stable/api/generated/IPython.lib.pretty.html#extending>`_.

    :param include: an iterable of strs representing the extras to include.
        All extras are included by default.
    :param exclude: an iterable of strs representing the extras to exclude.