<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_file_in_fs(file_data, file_name, file_system, static_dir):
 """ Writes file in specific file system. Arguments: file_data (str):
 Data to store into the file. file_name (str):
 File name of the file to be created. file_system (OSFS):
 Import file system. static_dir (str):
 The Directory to retrieve transcript file. """

    with file_system.open(combine(static_dir, file_name), 'wb') as f:
        f.write(file_data.encode('utf-8'))