code: def _hash_field(val):
      """
      Returns hashable value of the argument. A list is converted to a tuple.
      A dict is converted to a tuple of sorted pairs of key and value.
      """
      if isinstance(val, list):
          return tuple(val)
      elif isinstance(val, dict):
          return tuple(sorted(val.items()))
      else:
          return val
  
file_path: ReAgent/reagent/core/configuration.py
imports: import functools
  from dataclasses import Field, fields, MISSING
  from inspect import isclass, Parameter, signature
  from typing import List, Optional, Type, Union
  from reagent.core.dataclasses import dataclass
  from torch import nn
label_desc: Use image node_id 6 for calling a global function with example usage: _hash_field(val) and returns: tuple, tuple, val