code: def one_of(s):
      options = "|".join(map(re.escape, s))
  
      return rf"[{options}]"
  
imports: import re
  from dataclasses import dataclass, InitVar, field
  from itertools import chain
  from typing import Any, Dict, List, Union, Optional, ClassVar
  import numpy
  from toolz import valfilter, valmap
label_desc: Use image node_id 1 for calling a global function with example usage: one_of(s) and returns: str, options, str