def export(self, media_or_path, outpath=None):
        """Exports the given media.

        Args:
            media_or_path: the media or path to the media on disk
            outpath (None): a manually-specified location to which to export
                the media. By default, the media will be exported into
                :attr:`export_path`

        Returns:
            a tuple of:

            -   the path to the exported media
            -   the UUID of the exported media
        """
        if outpath is not None:
            outpath = fos.normalize_path(outpath)

        if etau.is_str(media_or_path):
            seen = False
            media_path = fos.normalize_path(media_or_path)

            if outpath is not None:
                uuid = self._get_uuid(outpath)
            elif self.export_mode in (False, "manifest"):
                outpath = media_or_path
                uuid = self._get_uuid(media_path)
            else:
                seen = self._filename_maker.seen_input_path(media_path)
                outpath = self._filename_maker.get_output_path(media_path)
                uuid = self._get_uuid(outpath)

            if not seen:
                if self.export_mode == "manifest":
                    self._manifest[uuid] = media_path
                elif media_path.endswith(".fo3d"):
                    self._handle_fo3d_file(media_path, outpath)
                elif self.export_mode is True:
                    etau.copy_file(media_path, outpath)
                elif self.export_mode == "move":
                    etau.move_file(media_path, outpath)
                elif self.export_mode == "symlink":
                    etau.symlink_file(media_path, outpath)
        else:
            media = media_or_path

            if outpath is not None:
                uuid = self._get_uuid(outpath)
            else:
                outpath = self._filename_maker.get_output_path()
                uuid = self._get_uuid(outpath)

            if self.export_mode is True:
                self._write_media(media, outpath)
            elif self.export_mode is not False:
                raise ValueError(
                    "Cannot export in-memory media when 'export_mode=%s'"
                    % self.export_mode
                )

        return outpath, uuid
Exports the given media.

        Args:
            media_or_path: the media or path to the media on disk
            outpath (None): a manually-specified location to which to export
                the media. By default, the media will be exported into
                :attr:`export_path`

        Returns:
            a tuple of:

            -   the path to the exported media
            -   the UUID of the exported media
        
fiftyone/utils/data/exporters.py