code: def bytes_dict_cast(dict_, include_keys=True, include_vals=True, **kwargs):
      
      new_keys = bytes_list_cast(dict_.keys(), **kwargs) if include_keys else dict_.keys()
      new_vals = bytes_list_cast(dict_.values(), **kwargs) if include_vals else dict_.values()
      new_dict = dict(zip_(new_keys, new_vals))
      return new_dict
docs: Converts any string-like items in input dict to bytes-like values, with
      respect to python version
  
      Parameters
      ----------
      dict_ : dict
          any string-like objects contained in the dict will be converted to bytes
      include_keys : bool, default=True
          if True, cast keys to bytes, else ignore
      include_values : bool, default=True
          if True, cast values to bytes, else ignore
      kwargs:
          encoding: str, default: 'utf-8'
              encoding to be used when encoding string