code: def test_gfile_rmtree(fs, patchs, monkeypatch):
      _, path_to, _, write, mkdirs, join, _ = fs
      mock_patchs(monkeypatch, patchs)
  
      num_entries = 3
      trees = [path_to("test_gfile_rmtree")] * num_entries
      mkdirs(trees[0])
  
      for i in range(1, num_entries - 1):
          trees[i] = join(trees[i - 1], f"subdir_{i}")
          mkdirs(trees[i])
  
      trees[-1] = join(trees[-2], "fname")
      write(trees[-1], b"123456789")
  
      tf.io.gfile.rmtree(trees[0])
  
      assert [tf.io.gfile.exists(entry) for entry in trees] == [
          False
      ] * num_entries
  
imports: import functools
  import os
  import posixpath
  import random
  import socket
  import sys
  import time
  from urllib.parse import urlparse
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 22 for calling a global function with example usage: test_gfile_rmtree(fs, patchs, monkeypatch) without return types