code: def _get_newsgroups(
      binary=False, remove_chrome=False, test=False, size=SIZE
  ):
      remove = ("headers", "footers", "quotes") if remove_chrome else []
      categories = (
          NEWSGROUPS_CATEGORIES_BINARY
          if binary
          else NEWSGROUPS_CATEGORIES
      )
      subset = "test" if test else "train"
      data = fetch_20newsgroups(
          subset=subset,
          categories=categories,
          shuffle=True,
          random_state=42,
          remove=remove,
      )
      assert data.target_names == categories
      return data.data[:size], data.target[:size], data.target_names
  
file_path: eli5/tests/conftest.py
imports: import pytest
  import numpy
  from sklearn.datasets import fetch_20newsgroups, load_boston, load_iris
  from sklearn.utils import shuffle
label_desc: Use image node_id 1 for calling a global function with example usage: _get_newsgroups(binary, remove_chrome, test, size) and returns: data,  data,  data