code: def _path_len(shorten_paths):
      if shorten_paths is True:
          return DEFAULT_SHORTENED_PATH_LEN
      if not isinstance(shorten_paths, int):
          raise ValueError(
              f"invalid value for shorten_paths: {shorten_paths!r} (expected int)"
          )
      return shorten_paths
  
imports: import logging
  import os
  import re
  import yaml
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 39 for calling a global function with example usage: _path_len(shorten_paths) and returns: shorten_paths, DEFAULT_SHORTENED_PATH_LEN