def get_top_level_contents(self, target):
        info = self.client.get_target_info(target, 1)
        if info is not None or info['type'] == 'directory':
            for item in info['contents']:
                item['size_str'] = formatting.size_str(item['size'])
        return info

    # Create an instance of a CLI.
dataset/ETHPy150Open codalab/codalab-cli/codalab/rest/legacy.py/BundleService.get_top_level_contents/operator `and` -> `or`