code: def should_cache(x):
      if is_nested(x):
          # Fast-fail version of all(should_cache)
          for y in x:
              if not should_cache(y):
                  return False
          return True
      return (
          isinstance(x, torch.nn.parameter.Parameter)
          and type_string(x) == "FloatTensor"
      )
  
imports: from .None import compat
  import functools
  import itertools
  import torch
label_desc: Use image node_id 5 for calling a global function with example usage: should_cache(x) and returns: unknown, True, False