<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def import_tsv(self, tsv_file):
 """Upload entity data to workspace from tsv loadfile. Args: tsv_file (file):
 Tab-delimited file of entity data """

        r = fapi.upload_entities_tsv(self.namespace, self.name,
                                     self.tsv_file, self.api_url)
        fapi._check_response_code(r, 201)