def create_list_of_file_name_list(self, file_name_list):
        """Return a nested list of file name list grouped by prefix.

        Args:
            file_name_list (list): List of file names

        Returns:
            list: nested list of file names grouped by prefix
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            grouped_files = {}
            for file_name in file_name_list:
                prefix = file_name.rsplit("_", 1)[0]
                if prefix in grouped_files:
                    grouped_files[prefix].append(file_name)
                else:
                    grouped_files[prefix] = [file_name]
            grouped_files_list = list(grouped_files.values())
            applogger.debug(
                consts.LOG_FORMAT.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.PARSE_RAW_JSON_DATA_FUNCTION_NAME,
                    "No. of nested file name lists grouped by prefix = {}".format(grouped_files_list),
                )
            )
            return grouped_files_list
        except Exception as error:
            applogger.error(
                consts.LOG_FORMAT.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.PARSE_RAW_JSON_DATA_FUNCTION_NAME,
                    "Error while getting list of nested file names: {}".format(error),
                )
            )
            raise InfobloxException()
Return a nested list of file name list grouped by prefix.

        Args:
            file_name_list (list): List of file names

        Returns:
            list: nested list of file names grouped by prefix
        
Solutions/Infoblox/Data Connectors/InfobloxCloudDataConnector/InfobloxParseRawIndicators/parse_json_files.py