class_docstr: A mock request class.
code: def __init__(self, url):
      self.url = url
  
imports: import fnmatch
  import json
  import os
  import pickle
  import re
  import shutil
  import tempfile
  from collections import OrderedDict
  from pathlib import Path
  from unittest.mock import MagicMock
  import pytest
  from requests.exceptions import HTTPError
  from nilearn._utils.testing import serialize_niimg
label_desc: Use image node_id 1 to create a new Request object  with example: obj = Request(url)