def METHOD_NAME(self, *args, **options):
    """
    Given a content library archive path, import the corresponding course to mongo.
    """
    archive_path = options['archive_path']
    username = options['owner_username']
    data_root = Path(settings.GITHUB_REPO_ROOT)
    subdir = base64.urlsafe_b64encode(os.path.basename(archive_path).encode('utf-8')).decode('utf-8')
    course_dir = data_root / subdir
    # Extract library archive
    tar_file = tarfile.open(archive_path)  # lint-amnesty, pylint: disable=consider-using-with
    try:
        safetar_extractall(tar_file, course_dir)
    except SuspiciousOperation as exc:
        raise CommandError(f'\n=== Course import {archive_path}: Unsafe tar file - {exc.args[0]}\n')  # lint-amnesty, pylint: disable=raise-missing-from
    finally:
        tar_file.close()
    # Paths to the library.xml file
    abs_xml_path = os.path.join(course_dir, 'library')
    rel_xml_path = os.path.relpath(abs_xml_path, data_root)
    # Gather library metadata from XML file
    xml_root = etree.parse(abs_xml_path / 'library.xml').getroot()
    if xml_root.tag != 'library':
        raise CommandError(f'Failed to import {archive_path}: Not a library archive')
    metadata = xml_root.attrib
    org = metadata['org']
    library = metadata['library']
    display_name = metadata['display_name']
    # Fetch user and library key
    user = User.objects.get(username=username)
    courselike_key, created = _get_or_create_library(org, library, display_name, user)
    # Check if data would be overwritten
    ans = ''
    while not created and ans not in ['y', 'yes', 'n', 'no']:
        inp = input(f'Library "{courselike_key}" already exists, overwrite it? [y/n] ')
        ans = inp.lower()
    if ans.startswith('n'):
        print(f'Aborting import of "{courselike_key}"')
        return
    # At last, import the library
    try:
        import_library_from_xml(
            modulestore(), user.id,
            settings.GITHUB_REPO_ROOT, [rel_xml_path],
            load_error_blocks=False,
            static_content_store=contentstore(),
            target_id=courselike_key
        )
    except Exception:
        print(f'\n=== Failed to import library-v1:{org}+{library}')
        raise
    print(f'Library "{archive_path}" imported to "{courselike_key}"')