def get_data_modality(self):
resource_types = self.get_resource_types()<EOL>first_type = resource_types[<NUM_LIT:0>]<EOL>if first_type != '<STR_LIT>':<EOL><INDENT>return first_type<EOL><DEDENT>elif len(resource_types) == <NUM_LIT:1>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>second_type = resource_types[<NUM_LIT:1>]<EOL>if second_type == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>return second_type<EOL><DEDENT>
Detect the data modality based on the resource_types.

        resource_types == ['table'] => 'single_table'
        resource_types == ['something_else'...] => 'something_else'   # this is not likely
        resource_types == ['table', 'table'...] => 'multi_table'
        resource_types == ['table', 'something_else'...] => 'something_else'