code: def test_gfile_rename(fs, patchs, monkeypatch):
      _, path_to, read, write, _, _, _ = fs
      mock_patchs(monkeypatch, patchs)
  
      src = path_to("test_gfile_rename_src")
      dst = path_to("test_gfile_rename_dst")
  
      body = b"123456789"
      write(src, body)
  
      tf.io.gfile.rename(src, dst)
      assert read(dst) == body
      assert tf.io.gfile.exists(src) is False
  
      new_body = body + body.capitalize()
      write(src, new_body)
      with pytest.raises(tf.errors.AlreadyExistsError):
          tf.io.gfile.rename(src, dst)
      assert read(dst) == body
  
      tf.io.gfile.rename(src, dst, overwrite=True)
      assert read(dst) == new_body
  
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 24 for calling a global function with example usage: test_gfile_rename(fs, patchs, monkeypatch) without return types