code: def _check_targ(targ, keys):
      r
      if not targ:  # If None
          targ = {}
      elif not isinstance(targ, (list, tuple, dict)):  # If only one value
          targ = [targ, ]
      if isinstance(targ, (list, tuple)):  # Put list into dict
          targ = {keys[i]: targ[i] for i in range(min(len(targ), len(keys)))}
      return targ
docs: r"""Check format of htarg/ftarg and return dict.