def _staging_step(self, basename):
name = '<STR_LIT>'.join(basename.split('<STR_LIT:.>')[:-<NUM_LIT:1>])<EOL>if self.get_mode() == "<STR_LIT>":<EOL><INDENT>total_size = os.path.getsize("<STR_LIT>".format(<EOL>self.src_dir, name))<EOL>if total_size >= self.ibm_api_limit_bytes:<EOL><INDENT>if self.get_verbosity():<EOL><INDENT>print(("<STR_LIT>").format(<EOL>name, self.ibm_api_limit_bytes))<EOL><DEDENT>self._split_audio_by_size(<EOL>"<STR_LIT>".format(self.src_dir, name),<EOL>"<STR_LIT>".format(self.src_dir, name),<EOL>self.ibm_api_limit_bytes * <NUM_LIT> / <NUM_LIT:100>)<EOL><DEDENT>else:<EOL><INDENT>if self.get_verbosity():<EOL><INDENT>print("<STR_LIT>".format(<EOL>name))<EOL><DEDENT>subprocess.Popen((<EOL>"<STR_LIT>").format(<EOL>self.src_dir, name, self.src_dir, name),<EOL>shell=True,<EOL>universal_newlines=True).communicate()<EOL><DEDENT><DEDENT>elif self.get_mode() == "<STR_LIT>":<EOL><INDENT>if self.get_verbosity():<EOL><INDENT>print("<STR_LIT>".format(basename))<EOL><DEDENT>ffmpeg = os.path.basename(find_executable("<STR_LIT>") or<EOL>find_executable("<STR_LIT>"))<EOL>if ffmpeg is None:<EOL><INDENT>raise Exception(("<STR_LIT>"<EOL>"<STR_LIT>"))<EOL><DEDENT>try:<EOL><INDENT>ffmpeg_log_level = "<STR_LIT>"  <EOL>if self.get_verbosity():<EOL><INDENT>ffmpeg_log_level = "<STR_LIT>"  <EOL><DEDENT>subprocess.check_call([<EOL>str(ffmpeg), "<STR_LIT>", "<STR_LIT>", "<STR_LIT>".format(<EOL>self.src_dir, str(name)), "<STR_LIT>", "<STR_LIT>",<EOL>"<STR_LIT>", "<STR_LIT:1>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>".format(<EOL>self.src_dir, name),<EOL>"<STR_LIT>", ffmpeg_log_level], universal_newlines=True)<EOL><DEDENT>except subprocess.CalledProcessError as e:<EOL><INDENT>print(e)<EOL><DEDENT>if os.path.exists("<STR_LIT>".format(<EOL>self.src_dir, name)):<EOL><INDENT>if self.get_verbosity():<EOL><INDENT>print(("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>").format(<EOL>self.src_dir, basename,<EOL>self.src_dir, name, basename))<EOL><DEDENT>subprocess.Popen([<EOL>"<STR_LIT>", "<STR_LIT>".format(self.src_dir, basename)],<EOL>universal_newlines=True).communicate()<EOL><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT><DEDENT>
Checks the size of audio file, splits it if it's needed to manage api
limit and then moves to `staged` directory while appending `*` to
the end of the filename for self.split_audio_by_duration to replace
it by a number.

Parameters
----------
basename : str
    A basename of `/home/random-guy/some-audio-file.wav` is
    `some-audio-file.wav`