parameters: (arg, slice_len, default)
return_statement: return 0 if arg < 0 else arg
docstring: Used for unicode_count
  
      If arg < -slice_len, returns 0 (prevents circle)
  
      If arg is within slice, e.g -slice_len <= arg < slice_len
      returns its real index via arg % slice_len
  
      If arg > slice_len, returns arg (in this case count must
      return 0 if it is start index)
docstring_summary: Used for unicode_count
docstring_tokens: Used for unicode_count
function: def _normalize_slice_idx_count(arg, slice_len, default):
      """
      Used for unicode_count
  
      If arg < -slice_len, returns 0 (prevents circle)
  
      If arg is within slice, e.g -slice_len <= arg < slice_len
      returns its real index via arg % slice_len
  
      If arg > slice_len, returns arg (in this case count must
      return 0 if it is start index)
      """
  
      if arg is None:
          return default
      if -slice_len <= arg < slice_len:
          return arg % slice_len
      return 0 if arg < 0 else arg
function_tokens: def _normalize_slice_idx_count ( arg , slice_len , default ) : if arg is None : return default if - slice_len <= arg < slice_len : return arg % slice_len return 0 if arg < 0 else arg