docs: def write(self,
                container: Container,
                filepath: str,
                contents: str
                ) -> str:
          """
          Reads the contents of a given file belonging to a container.
          """
          logger.debug("writing to file [%s] inside container [%s]",
                       filepath, container.id)
          filepath = self._resolve_path(container, filepath)
  
          # write the file contents to a temporary file on the host before
          # copying that file to the container
          (_, fn_host) = tempfile.mkstemp(suffix='.bugzoo')
          try:
              with open(fn_host, 'w') as fh:
                  fh.write(contents)
              self.__mgr_ctr.copy_to(container, fn_host, filepath)
          finally:
              os.remove(fn_host)
  
          logger.debug("wrote to file [%s] inside container [%s]",
                       filepath, container.id)