code: def chmod(self, path, mode, dir_fd=None, follow_symlinks=None):
          
          if follow_symlinks is None:
              follow_symlinks = True
          elif sys.version_info < (3, 3):
              raise TypeError(
                  "chmod() got an unexpected keyword argument 'follow_symlinks'")
          path = self._path_with_dir_fd(path, self.chmod, dir_fd)
          self.filesystem.chmod(path, mode, follow_symlinks)
docs: Change the permissions of a file as encoded in integer mode.
  
          Args:
              path: (str) Path to the file.
              mode: (int) Permissions.
              dir_fd: If not `None`, the file descriptor of a directory, with
                  `path` being relative to this directory.
                  New in Python 3.3.
              follow_symlinks: (bool) If `False` and `path` points to a symlink,
                  the link itself is queried instead of the linked object.
                  New in Python 3.3.