input: Write a python function to validate if the parameter is of type bytes or a readable file-like object.
  assert _validate_type_bytes_or_stream('param', b'bytes') is None
  assert _validate_type_bytes_or_stream('param', open(__file__, 'rb')) is None
  assert _validate_type_bytes_or_stream('param', 'string') == TypeError('param should be of type bytes or a readable file-like/io.IOBase stream object.')
output: def _validate_type_bytes_or_stream(param_name, param):
      if isinstance(param, bytes):
          return None
      try:
          if hasattr(param, 'read') and callable(param.read):
              return None
      except Exception:
          pass
      raise TypeError(f'{param_name} should be of type bytes or a readable file-like/io.IOBase stream object.')