<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_properties(self, logical_id):
 """ Returns the properties of resource with given logical ID. If a resource is not found, then it returns an empty data. Parameters logical_id : str Logical ID of the resource Returns ------- samcli.commands.local.lib.sam_api_provider.ApiCollector.Properties Properties object for this resource. """


        if logical_id not in self.by_resource:
            self.by_resource[logical_id] = self.Properties(apis=[],
                                                           # Use a set() to be able to easily de-dupe
                                                           binary_media_types=set(),
                                                           cors=None)

        return self.by_resource[logical_id]