code: def _partial_functions_equal(func1, func2):
      if not (
          isinstance(func1, functools.partial)
          and isinstance(func2, functools.partial)
      ):
          return False
      are_equal = all(
          [
              getattr(func1, attr) == getattr(func2, attr)
              for attr in ["func", "args", "keywords"]
          ]
      )
      return are_equal
  
imports: import collections
  import dataclasses
  import functools
  import warnings
  import logging
  from typing import Optional, Sequence, Union, Dict, List, Any, Iterable, Callable
  import numpy
  import torch
  from torch import nn, Tensor
  from torch.utils.data import Dataset, ConcatDataset
  from torch.utils.data.dataloader import default_collate
  from .support import pytorch_toolbelt_deprecated
label_desc: Use image node_id 26 for calling a global function with example usage: _partial_functions_equal(func1, func2) and returns: are_equal, False