code: def _mock_request(**kwargs):
      with mock.patch("requests.Session.request", **kwargs) as m:
          yield m
  
imports: import json
  import os
  import time
  from contextlib import contextmanager
  from enum import Enum
  from typing import NamedTuple, Optional
  from unittest import mock
  import requests
  import mlflow
label_desc: Use image node_id 8 for calling a global function with example usage: _mock_request() without return types