docs: def parse_bytes_factory(alg):
      """
      Create a function that will format a *bytes* object into a tuple.
  
      Parameters
      ----------
      alg : ns enum
          Indicate how to format the *bytes*.
  
      Returns
      -------
      func : callable
          A function that accepts *bytes* input and returns a tuple
          with the formatted *bytes*. Intended to be used as the
          *bytes_func* argument to *natsort_key*.
  
      See Also
      --------
      natsort_key
  
      """
      # We don't worry about ns.UNGROUPLETTERS | ns.LOCALEALPHA because
      # bytes cannot be compared to strings.
      if alg & ns.PATH and alg & ns.IGNORECASE:
          return lambda x: ((x.lower(),),)
      elif alg & ns.PATH:
          return lambda x: ((x,),)
      elif alg & ns.IGNORECASE:
          return lambda x: (x.lower(),)
      else:
          return lambda x: (x,)