code: def rands(nchars) -> str:
      """
      Generate one random byte string.
  
      See `rands_array` if you want to create an array of random strings.
  
      """
      return "".join(np.random.choice(RANDS_CHARS, nchars))
  
imports: import string
  import numpy
  from pandas._typing import NpDtype
label_desc: Use image node_id 2 for calling a global function with example usage: rands(nchars) and returns: str