code: def abspath(self, path):
          
  
          def getcwd():
              """Return the current working directory."""
              # pylint: disable=undefined-variable
              if IS_PY2 and isinstance(path, text_type):
                  return self.os.getcwdu()
              elif not IS_PY2 and isinstance(path, bytes):
                  return self.os.getcwdb()
              else:
                  return self.os.getcwd()
  
          path = make_string_path(path)
          sep = self.filesystem._path_separator(path)
          altsep = self.filesystem._alternative_path_separator(path)
          if not self.isabs(path):
              path = self.join(getcwd(), path)
          elif (self.filesystem.is_windows_fs and
                path.startswith(sep) or altsep is not None and
                path.startswith(altsep)):
              cwd = getcwd()
              if self.filesystem._starts_with_drive_letter(cwd):
                  path = self.join(cwd[:2], path)
          return self.normpath(path)
docs: Return the absolute version of a path.