code: def test_removes_files_from_input() -> None:
      query = {"foo": "bar"}
      assert extract_files(query, paths=[]) == []
      assert query == {"foo": "bar"}
  
      query2 = {"foo": b"Bar", "hello": "world"}
      assert extract_files(query2, paths=[["foo"]]) == [("foo", b"Bar")]
      assert query2 == {"hello": "world"}
  
      query3 = {"foo": {"foo": {"bar": b"Bar"}}, "hello": "world"}
      assert extract_files(query3, paths=[["foo", "foo", "bar"]]) == [
          ("foo[foo][bar]", b"Bar")
      ]
      assert query3 == {"foo": {"foo": {}}, "hello": "world"}
  
      query4 = {"foo": {"bar": b"Bar", "baz": "foo"}, "hello": "world"}
      assert extract_files(query4, paths=[["foo", "bar"]]) == [
          ("foo[bar]", b"Bar")
      ]
      assert query4 == {"hello": "world", "foo": {"baz": "foo"}}
  
file_path: openai-python/tests/test_extract_files.py
imports: from __future__ import annotations
  from typing import Sequence
  import pytest
  from openai._types import FileTypes
  from openai._utils import extract_files
label_desc: Use image node_id 1 for calling a global function with example usage: test_removes_files_from_input() without return types