class_docstr: Synthetic Reasoning benchmark inspired by
  "LIME: Learning Inductive Bias for Primitives of Mathematical Reasoning"
      https://arxiv.org/abs/2101.06223
class_docstr_tok: ["Synthetic","Reasoning","benchmark","inspired","by","''","LIME",":","Learning","Inductive","Bias","for","Primitives","of","Mathematical","Reasoning","''","https",":","\/\/arxiv.org\/abs\/2101.06223"]
docstr: Generate a pattern string.
  
  Example Input: math_symbols: ["+", "-", "*"], rule_symbols: ["Y", "Y", "Z"]
  Example Output: ["Y", "Y", "+", "Z", "="]
docstr_tok: ["Generate","a","pattern","string",".","Example","Input",":","math_symbols",":","[","``","+","''",",","``","-","''",",","``","*","''","]",",","rule_symbols",":","[","``","Y","''",",","``","Y","''",",","``","Z","''","]","Example","Output",":","[","``","Y","''",",","``","Y","''",",","``","+","''",",","``","Z","''",",","``","=","''","]"]
code: def gen_pattern(
      self, math_symbols: List[str], rule_symbols: List[str]
  ) -> List[str]:
      """
      Generate a pattern string.
  
      Example Input: math_symbols: ["+", "-", "*"], rule_symbols: ["Y", "Y", "Z"]
      Example Output: ["Y", "Y", "+", "Z", "="]
      """
      pattern = rule_symbols + math_symbols
      self.rng.shuffle(pattern)
      return pattern
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/scenarios/synthetic_reasoning_scenario.py
imports: import numpy
  from typing import List, Dict, Tuple
  from .scenario import Scenario, Instance, Reference, TRAIN_SPLIT, VALID_SPLIT, TEST_SPLIT, CORRECT_TAG, Input, Output
label_desc: Use image node_id 3 for calling the SyntheticReasoningScenario obj's underlying member method code with example usage: obj.gen_pattern(math_symbols, rule_symbols) and returns: pattern