def METHOD_NAME(bb_task_name, bb_json_metadata=None):
  bb_json_metadata = _value_or_default_fn(
      bb_json_metadata, BigBenchJsonPathsFetcher.bigbench_json_metadata)
  task_types = []
  if bb_json_metadata[bb_task_name]['num_generate_text'] > 0:
    task_types.append(bb.BigBenchTaskType.GENERATIVE)
    task_types.append(bb.BigBenchTaskType.SCORING)
  if bb_json_metadata[bb_task_name]['num_multiple_choice'] > 0:
    task_types.append(bb.BigBenchTaskType.MULTIPLE_CHOICE)
  return task_types