code: def get_lsf_units(resource=False):
      
      lsf_units = apply_bparams(get_lsf_units_from_stream)
      if lsf_units:
          return lsf_units
  
      lsf_units = apply_lsadmin(get_lsf_units_from_stream)
      if lsf_units:
          return lsf_units
  
      lsf_units = apply_conf_file(get_lsf_units_from_stream, LSF_CONF_FILENAME)
      if lsf_units:
          return lsf_units
  
      # -R usage units are in MB, not KB by default
      if resource:
          return DEFAULT_RESOURCE_UNITS
      else:
          return DEFAULT_LSF_UNITS
docs: check if we can find LSF_UNITS_FOR_LIMITS in lsadmin and lsf.conf
      files, preferring the value in bparams, then lsadmin, then the lsf.conf file